mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-20 15:45:46 -04:00
Update authentication.cr
This commit is contained in:
parent
e4ea243ce5
commit
4a62c93db5
@ -92,7 +92,7 @@ module Invidious::Routes::API::V1::Authentication
|
||||
if !CONFIG.login_enabled
|
||||
return error_json(400, "Login has been disabled by administrator")
|
||||
else
|
||||
creds = Credentials.from_json(env.request.body || "{}")
|
||||
creds = Login.from_json(env.request.body || "{}")
|
||||
user = Invidious::Database::Users.select(email: creds.username)
|
||||
old_sid = creds.token
|
||||
if user
|
||||
|
Loading…
x
Reference in New Issue
Block a user