make sure, correct user name is used for jwt token

This commit is contained in:
einhornimmond 2025-01-21 09:18:46 +01:00
parent eec3e3a965
commit a4c6aa8b20

View File

@ -791,7 +791,7 @@ export class UserResolver {
if (humhubUser.account.status !== 1) {
throw new LogError('user status is not 1', humhubUser.account.status)
}
return await humhubClient.createAutoLoginUrl(username)
return await humhubClient.createAutoLoginUrl(humhubUser.account.username)
}
@Authorized([RIGHTS.SEARCH_ADMIN_USERS])