Fix #4885 - Pass userid as int to GetUser for JWT authentication

This commit is contained in:
Jon Welfringer 2024-12-03 10:34:44 -08:00 committed by GitHub
parent c81905882f
commit ab6fa48172
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);