mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-05-25 12:51:31 +00:00
Merge branch 'master' into token_refresh_race_condition
This commit is contained in:
commit
379f6c716a
91 changed files with 4263 additions and 723 deletions
|
|
@ -258,6 +258,13 @@ class TokenManager {
|
|||
}
|
||||
|
||||
const user = await Database.userModel.getUserById(apiKey.userId)
|
||||
|
||||
if (!user?.isActive) {
|
||||
// deny login
|
||||
done(null, null)
|
||||
return
|
||||
}
|
||||
|
||||
done(null, user)
|
||||
} else {
|
||||
// JWT based authentication
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue