Merge pull request #4894 from W6HBR/dev

Fix #4885 - Pass userid as int to GetUser for JWT authentication
This commit is contained in:
Shaun Walker 2024-12-04 08:24:27 -05:00 committed by GitHub
commit 8a7c2ce2c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ namespace Oqtane.Infrastructure
if (userid != null && username != null)
{
var _users = context.RequestServices.GetService(typeof(IUserManager)) as IUserManager;
var user = _users.GetUser(userid, alias.SiteId); // cached
var user = _users.GetUser(int.Parse(userid), alias.SiteId); // cached
if (user != null && !user.IsDeleted)
{
var claimsidentity = UserSecurity.CreateClaimsIdentity(alias, user);