Adapt 2FA changes to glitch-soc's theming system
This commit is contained in:
1 parent
a340e653df
commit
a68ec50e4e
6 files changed
+7
-5
No files matched your search
@@ -85,6 +85,10 @@ module Settings
|
||||
|
||||
private
|
||||
|
||||
def set_pack
|
||||
use_pack 'auth'
|
||||
end
|
||||
|
||||
def require_otp_enabled
|
||||
unless current_user.otp_enabled?
|
||||
flash[:error] = t('webauthn_credentials.otp_required')
|
||||
|
||||
Reference in new issue
Block a user