@ -9,8 +9,8 @@ class MFAController extends Controller {
if(req.user.mfa_enabled){
// Already set up!
returnthis.Vue.auth_message(res,{
message:'It looks like your account is already set up for multi-factor authentication. Unable to continue with MFA setup.',
next_destination:'/',// TODO update this
message:req.T('auth.already_mfa'),
next_destination:'/dash/profile',
button_text:'Okay',
})
}
@ -24,7 +24,7 @@ class MFAController extends Controller {
asyncchallenge(req,res,next){
if(!req.user.mfa_enabled){
returnthis.Vue.auth_message(res,{
message:'Your account is not configured to use multi-factor authentication. Would you like to configure it now?',
message:req.T('auth.mfa_prompt'),
next_destination:'/auth/mfa/setup',
button_text:'Setup MFA',
})
@ -42,7 +42,7 @@ class MFAController extends Controller {
asyncget_disable(req,res,next){
returnthis.Vue.confirm(res,{
message:`You are about to disable multi-factor authentication for your account. This process will require you to re-authenticate to continue. <br><br> Proceed?`,
message:req.T('auth.mfa_disable_prompt'),
yes:'/auth/mfa/disable/process',
no:'/dash/profile',
})
@ -61,7 +61,7 @@ class MFAController extends Controller {
if(!client)returnthis._uniform(res,'Unable to authorize client application. The application config is invalid. Please check the client ID and redirect URI and try again.')
@ -25,7 +25,7 @@ class Oauth2 extends Oauth2Controller {
asyncauthorize_get(req,res,next){
constclient=awaitthis._get_authorize_client(req)
if(!client)returnthis._uniform(res,'Unable to authorize client application. The application config is invalid. Please check the client ID and redirect URI and try again.')
already_has_mfa:'MFA is already configured for your user.',
password_complexity_fail:'Password does not meet the minimum complexity score of MIN_SCORE.',
duplicate_pw:'This password is a duplicate of one of your previous passwords.',
invalid_trap:'Invalid trap type.',
unable_to_grant_trust:'Unable to grant trust. Grant token is invalid.',
missing_trust_flow:'Missing trust flow data.',
invalid_un_or_pw:'Invalid username or password.',
unable_to_complete:'Unable to complete authentication: one or more errors occurred',
sign_in_to_continue:'Please, sign-in to continue.',
logged_out:'You have been suggessfully logged out.',
already_mfa:'It looks like your account is already set up for multi-factor authentication. Unable to continue with MFA setup.',
mfa_prompt:'Your account is not configured to use multi-factor authentication. Would you like to configure it now?',
mfa_disable_prompt:'You are about to disable multi-factor authentication for your account. This process will require you to re-authenticate to continue. <br><br> Proceed?',
mfa_no_recovery:'Unfortunately, it looks like your account does not have any MFA recovery codes generated.',
unable_to_authorize:'Unable to authorize client application. The application config is invalid. Please check the client ID and redirect URI and try again.',
oauth_prompt:'CLIENT_NAME is requesting access to your APP_NAME account. Once you grant it, you may not be prompted for permission again.',
will_redirect:'You will be redirected to:',
reauth_to_continue:'Please re-authenticate to continue.',