mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-23 15:40:01 -06:00
WebUI: reword OTP info message displayed during PW reset
The message displayed before is now limited to the OTP sync form, for which it was written originally. A new message is introduced for the PW reset form, which clarifies the usage of the OTP field. Fixes: https://pagure.io/freeipa/issue/5628 Reviewed-By: Alexander Bokovoy <abbra@users.noreply.github.com>
This commit is contained in:
parent
13b177822e
commit
d63a91da4b
@ -546,7 +546,7 @@ define(['dojo/_base/declare',
|
||||
},
|
||||
|
||||
set_reset_aside_text: function() {
|
||||
this.set('aside', "<p>"+this.otp_info_msg+"<p/>");
|
||||
this.set('aside', "<p>"+this.otp_reset_info_msg+"<p/>");
|
||||
},
|
||||
|
||||
constructor: function(spec) {
|
||||
|
@ -59,9 +59,12 @@ define(['dojo/_base/declare',
|
||||
|
||||
caps_warning_msg: "Warning: CAPS LOCK key is on",
|
||||
|
||||
otp_info_msg: "<i class=\"fa fa-info-circle\"></i> <strong>One-Time-Password(OTP):</strong> \
|
||||
otp_info_msg: "<i class=\"fa fa-info-circle\"></i> <strong>OTP (One-Time Password):</strong> \
|
||||
Generate new OTP code for each OTP field.",
|
||||
|
||||
otp_reset_info_msg: "<i class=\"fa fa-info-circle\"></i> <strong>OTP (One-Time Password):</strong> \
|
||||
Leave blank if you are not using OTP tokens for authentication.",
|
||||
|
||||
/**
|
||||
* Details builder
|
||||
* @property {IPA.details_builder}
|
||||
@ -347,6 +350,9 @@ define(['dojo/_base/declare',
|
||||
|
||||
this.otp_info_msg = text.get(spec.otp_info_msg || '@i18n:password.otp_info',
|
||||
this.otp_info_msg);
|
||||
|
||||
this.otp_reset_info_msg = text.get(spec.otp_reset_info_msg || '@i18n:password.otp_reset_info',
|
||||
this.otp_reset_info_msg);
|
||||
}
|
||||
});
|
||||
return LoginScreenBase;
|
||||
|
@ -747,7 +747,8 @@
|
||||
"new_password": "New Password",
|
||||
"new_password_required": "New password is required",
|
||||
"otp": "OTP",
|
||||
"otp_info": "<i class=\"fa fa-info-circle\"></i> <strong>One-Time-Password(OTP):</strong> Generate new OTP code for each OTP field.",
|
||||
"otp_info": "<i class=\"fa fa-info-circle\"></i> <strong>OTP (One-Time Password):</strong> Generate new OTP code for each OTP field.",
|
||||
"otp_reset_info": "<i class=\"fa fa-info-circle\"></i> <strong>OTP (One-Time Password):</strong> Leave blank if you are not using OTP tokens for authentication.",
|
||||
"otp_long": "One-Time-Password",
|
||||
"otp_sync_fail": "Token synchronization failed",
|
||||
"otp_sync_invalid": "The username, password or token codes are not correct",
|
||||
|
@ -1678,7 +1678,15 @@ class i18n_messages(Command):
|
||||
"new_password": _("New Password"),
|
||||
"new_password_required": _("New password is required"),
|
||||
"otp": _("OTP"),
|
||||
"otp_info": _("<i class=\"fa fa-info-circle\"></i> <strong>One-Time-Password(OTP):</strong> Generate new OTP code for each OTP field."),
|
||||
"otp_info":
|
||||
_("<i class=\"fa fa-info-circle\"></i> <strong>"
|
||||
"OTP (One-Time-Password):</strong>"
|
||||
"Generate new OTP code for each OTP field."),
|
||||
"otp_reset_info":
|
||||
_("<i class=\"fa fa-info-circle\"></i> <strong>"
|
||||
"OTP (One-Time-Password):</strong>"
|
||||
"Leave blank if you are not using OTP tokens"
|
||||
"for authentication."),
|
||||
"otp_long": _("One-Time-Password"),
|
||||
"otp_sync_fail": _("Token synchronization failed"),
|
||||
"otp_sync_invalid": _("The username, password or token codes are not correct"),
|
||||
|
Loading…
Reference in New Issue
Block a user