mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-19 18:34:25 +02:00
Fix OIDC auto register user #4485
This commit is contained in:
parent
264ae928a9
commit
f7b94a4b6d
3 changed files with 21 additions and 9 deletions
|
@ -121,7 +121,7 @@ class OidcAuthStrategy {
|
|||
throw new Error(`Group claim ${Database.serverSettings.authOpenIDGroupClaim} not found or empty in userinfo`)
|
||||
}
|
||||
|
||||
let user = await Database.userModel.findOrCreateUserFromOpenIdUserInfo(userinfo, this)
|
||||
let user = await Database.userModel.findOrCreateUserFromOpenIdUserInfo(userinfo)
|
||||
|
||||
if (!user?.isActive) {
|
||||
throw new Error('User not active or not found')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue