mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Change default account type to Invidious accounts
This commit is contained in:
parent
686e17f489
commit
e578b2b8f7
2 changed files with 22 additions and 22 deletions
|
@ -1027,7 +1027,7 @@ get "/login" do |env|
|
|||
referer ||= "/feed/subscriptions"
|
||||
|
||||
account_type = env.params.query["type"]?
|
||||
account_type ||= "google"
|
||||
account_type ||= "invidious"
|
||||
|
||||
if account_type == "invidious"
|
||||
captcha = generate_captcha(HMAC_KEY)
|
||||
|
@ -1144,7 +1144,7 @@ post "/login" do |env|
|
|||
end
|
||||
|
||||
if !tfa_code
|
||||
next env.redirect "/login?tfa=true"
|
||||
next env.redirect "/login?tfa=true&type=google"
|
||||
end
|
||||
|
||||
tl = challenge_results[1][2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue