mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-22 21:47:26 +00:00
User: Remove broken Google login (password change route)
This commit is contained in:
parent
836898754e
commit
fcbd5106c3
@ -42,11 +42,6 @@ module Invidious::Routes::Account
|
|||||||
sid = sid.as(String)
|
sid = sid.as(String)
|
||||||
token = env.params.body["csrf_token"]?
|
token = env.params.body["csrf_token"]?
|
||||||
|
|
||||||
# We don't store passwords for Google accounts
|
|
||||||
if !user.password
|
|
||||||
return error_template(400, "Cannot change password for Google accounts")
|
|
||||||
end
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
validate_request(token, sid, env.request, HMAC_KEY, locale)
|
validate_request(token, sid, env.request, HMAC_KEY, locale)
|
||||||
rescue ex
|
rescue ex
|
||||||
@ -54,7 +49,7 @@ module Invidious::Routes::Account
|
|||||||
end
|
end
|
||||||
|
|
||||||
password = env.params.body["password"]?
|
password = env.params.body["password"]?
|
||||||
if !password
|
if password.nil? || password.empty?
|
||||||
return error_template(401, "Password is a required field")
|
return error_template(401, "Password is a required field")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user