mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Show more informative error to users signing in with Google
This commit is contained in:
parent
a160c645c9
commit
1360d67c11
1 changed files with 1 additions and 1 deletions
|
@ -951,7 +951,7 @@ post "/login" do |env|
|
||||||
end
|
end
|
||||||
|
|
||||||
if action == "signin"
|
if action == "signin"
|
||||||
user = PG_DB.query_one?("SELECT * FROM users WHERE LOWER(email) = LOWER($1) AND password IS NOT NULL", email, as: User)
|
user = PG_DB.query_one?("SELECT * FROM users WHERE LOWER(email) = LOWER($1)", email, as: User)
|
||||||
|
|
||||||
if !user
|
if !user
|
||||||
error_message = translate(locale, "Invalid username or password")
|
error_message = translate(locale, "Invalid username or password")
|
||||||
|
|
Loading…
Reference in a new issue