mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-14 01:46:51 -05:00
Add ability to require 2FA for specific roles (including Everybody) (#37701)
This commit is contained in:
@@ -22,7 +22,7 @@ module Settings
|
||||
private
|
||||
|
||||
def require_otp_enabled
|
||||
redirect_to settings_otp_authentication_path unless current_user.otp_enabled?
|
||||
redirect_to settings_otp_authentication_path(params.permit(:oauth)) unless current_user.otp_enabled?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user