mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Add clearer message for login failure
This commit is contained in:
parent
a48bf70d85
commit
dce9ef3e8b
1 changed files with 1 additions and 1 deletions
|
@ -565,7 +565,7 @@ post "/login" do |env|
|
||||||
|
|
||||||
env.redirect referer
|
env.redirect referer
|
||||||
rescue ex
|
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"
|
next templated "error"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue