From 1360d67c1175ab5f9949f88ce2a4fd0a76b6987b Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Thu, 20 Dec 2018 15:39:41 -0600 Subject: [PATCH] Show more informative error to users signing in with Google --- src/invidious.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")