summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2018-05-05 20:51:31 -0500
committerOmar Roth <omarroth@hotmail.com>2018-05-05 20:51:31 -0500
commitdce9ef3e8b244ded761d8c2e742202b0955d3b7b (patch)
tree8962a1f69e38c7509c9bdadb41e384088ddad03d
parenta48bf70d85bf2fedca6183cae89d31beae1632c5 (diff)
downloadinvidious-dce9ef3e8b244ded761d8c2e742202b0955d3b7b.tar.gz
invidious-dce9ef3e8b244ded761d8c2e742202b0955d3b7b.tar.bz2
invidious-dce9ef3e8b244ded761d8c2e742202b0955d3b7b.zip
Add clearer message for login failure
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 9ed84ca0..02eaec6b 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -565,7 +565,7 @@ post "/login" do |env|
env.redirect referer
rescue ex
- error_message = "Login failed"
+ error_message = "Login failed. This may be because two-factor authentication is not enabled on your account."
next templated "error"
end
end