summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-12-20 15:39:41 -0600
committerOmar Roth <omarroth@hotmail.com>2018-12-20 15:39:41 -0600
commit1360d67c1175ab5f9949f88ce2a4fd0a76b6987b (patch)
tree5b9033cb2833fafb0cb82dcb404d3a110fe3d6d8
parenta160c645c9c6299553a7cc0c89e5182f5d1288bb (diff)
downloadinvidious-1360d67c1175ab5f9949f88ce2a4fd0a76b6987b.tar.gz
invidious-1360d67c1175ab5f9949f88ce2a4fd0a76b6987b.tar.bz2
invidious-1360d67c1175ab5f9949f88ce2a4fd0a76b6987b.zip
Show more informative error to users signing in with Google
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index e56103ae..a1655044 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -951,7 +951,7 @@ post "/login" do |env|
end
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
error_message = translate(locale, "Invalid username or password")