mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-07-22 03:44:28 +02:00
Change: audio player default volume to 100% #118, Change: username case insensitive #117, Fix: allowing multiple users of the same name, Added: experimental scan audio tracks show raw tags #114
This commit is contained in:
parent
09aed354b3
commit
7d9ed75a28
9 changed files with 52 additions and 24 deletions
|
@ -97,11 +97,11 @@ class Auth {
|
|||
}
|
||||
|
||||
async login(req, res) {
|
||||
var username = req.body.username
|
||||
var username = (req.body.username || '').toLowerCase()
|
||||
var password = req.body.password || ''
|
||||
Logger.debug('Check Auth', username, !!password)
|
||||
|
||||
var user = this.users.find(u => u.username === username)
|
||||
var user = this.users.find(u => u.username.toLowerCase() === username)
|
||||
|
||||
if (!user || !user.isActive) {
|
||||
Logger.debug(`[Auth] Failed login attempt ${req.rateLimit.current} of ${req.rateLimit.limit}`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue