|
|
|
@ -56,9 +56,9 @@ module Invidious::Routes::Login
|
|
|
|
|
user = Invidious::Database::Users.select(email: email)
|
|
|
|
|
|
|
|
|
|
if user
|
|
|
|
|
user_flow_existing(env,email)
|
|
|
|
|
user_flow_existing(env, email)
|
|
|
|
|
else
|
|
|
|
|
user_flow_new(env,email,nil);
|
|
|
|
|
user_flow_new(env, email, nil)
|
|
|
|
|
end
|
|
|
|
|
rescue
|
|
|
|
|
return error_template(403, "Invalid Authorization Code")
|
|
|
|
@ -461,7 +461,7 @@ module Invidious::Routes::Login
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
user_flow_new(env, email, password);
|
|
|
|
|
user_flow_new(env, email, password)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
env.redirect referer
|
|
|
|
|