Commit fb16c09c authored by mh's avatar mh
Browse files

tfa requires secured mailbox + recovery email

parent f18cb434
......@@ -134,7 +134,11 @@ class TfaController < ApplicationController
def require_tfa_enabled
unless tfa_enabled?
flash[:notice] = t(:tfa_not_available) + ' - ' + t(:requires_recovery_email)
if mail_crypt_enabled?
flash[:notice] = t(:tfa_not_available) + ' - ' + t(:requires_recovery_email)
else
flash[:notice] = t(:tfa_not_available) + ' - ' + t(:requires_secured_mailbox)
end
redirect_to root_path
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment