Add password challenge to 2FA settings, e-mail notifications (#11878)

Fix #3961
This commit is contained in:
Eugen Rochko authored and GitHub committed 2019-09-18 16:37:27 +02:00
1 parent d0c2c52783
commit e1066cd431
32 files changed
+567 -50

No files matched your search

@@ -8,6 +8,7 @@ module Admin
authorize @user, :disable_2fa?
@user.disable_two_factor!
log_action :disable_2fa, @user
UserMailer.two_factor_disabled(@user).deliver_later!
redirect_to admin_accounts_path
end