mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-10-25 14:40:16 -05:00
webui: add placeholders to login screen
Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
This commit is contained in:
1 parent
6e7d4ad468
commit
e3de467676
3 files changed
+13
-1
No files matched your search
@@ -568,6 +568,7 @@ define(['dojo/_base/declare',
|
||||
$type: 'text',
|
||||
name: 'username',
|
||||
label: text.get('@i18n:login.username', "Username"),
|
||||
placeholder: text.get('@i18n:login.username', "Username"),
|
||||
show_errors: false,
|
||||
undo: false
|
||||
},
|
||||
@@ -575,6 +576,7 @@ define(['dojo/_base/declare',
|
||||
$type: 'password',
|
||||
name: 'password',
|
||||
label: text.get('@i18n:login.password', "Password"),
|
||||
placeholder: text.get('@i18n:login.password_and_otp', 'Password or Password+One-Time-Password'),
|
||||
show_errors: false,
|
||||
undo: false
|
||||
},
|
||||
@@ -589,13 +591,15 @@ define(['dojo/_base/declare',
|
||||
name: 'current_password',
|
||||
$type: 'password',
|
||||
label: text.get('@i18n:login.current_password', "Current Password"),
|
||||
placeholder: text.get('@i18n:login.current_password', "Current Password"),
|
||||
show_errors: false,
|
||||
undo: false
|
||||
},
|
||||
{
|
||||
name: 'otp',
|
||||
$type: 'password',
|
||||
label: text.get('@i18n:login.current_password', "OTP"),
|
||||
label: text.get('@i18n:password.otp', "OTP"),
|
||||
placeholder: text.get('@i18n:password.otp_long', 'One-Time-Password'),
|
||||
show_errors: false,
|
||||
undo: false
|
||||
},
|
||||
@@ -604,6 +608,7 @@ define(['dojo/_base/declare',
|
||||
$type: 'password',
|
||||
required: true,
|
||||
label: text.get('@i18n:password.new_password)', "New Password"),
|
||||
placeholder: text.get('@i18n:password.new_password)', "New Password"),
|
||||
show_errors: false,
|
||||
undo: false
|
||||
},
|
||||
@@ -612,6 +617,7 @@ define(['dojo/_base/declare',
|
||||
$type: 'password',
|
||||
required: true,
|
||||
label: text.get('@i18n:password.verify_password', "Verify Password"),
|
||||
placeholder: text.get('@i18n:password.new_password)', "New Password"),
|
||||
validators: [{
|
||||
$type: 'same_password',
|
||||
other_field: 'new_password'
|
||||
|
||||
@@ -512,7 +512,10 @@
|
||||
"invalid_password": "The password or username you entered is incorrect.",
|
||||
"new_password": "New Password",
|
||||
"new_password_required": "New password is required",
|
||||
"otp": "OTP",
|
||||
"otp_long": "One-Time-Password",
|
||||
"password": "Password",
|
||||
"password_and_otp": "Password or Password+One-Time-Password",
|
||||
"password_change_complete": "Password change complete",
|
||||
"password_must_match": "Passwords must match",
|
||||
"reset_failure": "Password reset was not successful.",
|
||||
|
||||
@@ -652,7 +652,10 @@ class i18n_messages(Command):
|
||||
"invalid_password": _("The password or username you entered is incorrect."),
|
||||
"new_password": _("New Password"),
|
||||
"new_password_required": _("New password is required"),
|
||||
"otp": _("OTP"),
|
||||
"otp_long": _("One-Time-Password"),
|
||||
"password": _("Password"),
|
||||
"password_and_otp": _("Password or Password+One-Time-Password"),
|
||||
"password_change_complete": _("Password change complete"),
|
||||
"password_must_match": _("Passwords must match"),
|
||||
"reset_failure": _("Password reset was not successful."),
|
||||
|
||||
Reference in new issue
Block a user