Merge pull request #3424 from gradido/fix_humhub_initialien_bug

feat(backend): make sure, correct user name is used for jwt token
This commit is contained in:
einhornimmond 2025-01-22 14:05:35 +01:00 committed by GitHub
commit 8b11a9775d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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])