mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-03-16.git
synced 2024-08-15 00:53:18 +00:00
Redirect to referer after 2fa removal
This commit is contained in:
parent
361d96bf74
commit
413de9c0b1
1 changed files with 1 additions and 0 deletions
|
@ -69,6 +69,7 @@ class Invidious::Routes::Accounts < Invidious::Routes::BaseRoute
|
||||||
end
|
end
|
||||||
|
|
||||||
PG_DB.exec("UPDATE users SET totp_secret = $1 WHERE email = $2", nil, user.email)
|
PG_DB.exec("UPDATE users SET totp_secret = $1 WHERE email = $2", nil, user.email)
|
||||||
|
env.redirect referer
|
||||||
end
|
end
|
||||||
|
|
||||||
# Handles requests to setup 2fa on an user account
|
# Handles requests to setup 2fa on an user account
|
||||||
|
|
Loading…
Reference in a new issue