File tree Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Expand file tree Collapse file tree 3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 397
397
Password must contain a numeric character.
398
398
</ li >
399
399
< li class ="list-group-item " id ="password-validation-contains-non-alphanumeric ">
400
- Password must contain a non-alphanumeric character.
400
+ Password must contain a non-alphanumeric character. < span class =" glyphicon glyphicon-info-sign " id =" password-validation-allowed-non-alphanumeric-characters " data-toggle =" tooltip " data-placement =" bottom " title =" No allowed non-alphanumeric characters. " aria-label =" View non-alphanumeric characters " > </ span >
401
401
</ li >
402
402
</ ul >
403
403
</ form >
Original file line number Diff line number Diff line change @@ -87,6 +87,12 @@ body.user-info-displayed {
87
87
list-style-type : none;
88
88
}
89
89
90
+ # password-validation-contains-non-alphanumeric .tooltip {
91
+ font-family : 'Courier New' , Courier;
92
+ font-size : 1.1em ;
93
+ letter-spacing : 5px ;
94
+ }
95
+
90
96
.logs {
91
97
color : # 555 ;
92
98
font-family : 'Courier New' , Courier;
Original file line number Diff line number Diff line change @@ -523,7 +523,8 @@ function onValidatePassword() {
523
523
const password = $ ( '#password-validation-password' ) . val ( ) ;
524
524
validatePassword ( auth , password ) . then (
525
525
status => {
526
- const customStrengthOptions = status . passwordPolicy . customStrengthOptions ;
526
+ const passwordPolicy = status . passwordPolicy ;
527
+ const customStrengthOptions = passwordPolicy . customStrengthOptions ;
527
528
528
529
// Only show options required by the password policy.
529
530
if ( customStrengthOptions . minPasswordLength ) {
@@ -536,6 +537,12 @@ function onValidatePassword() {
536
537
customStrengthOptions . maxPasswordLength
537
538
) ;
538
539
}
540
+ if ( customStrengthOptions . containsNonAlphanumericCharacter ) {
541
+ $ ( '#password-validation-allowed-non-alphanumeric-characters' ) . attr (
542
+ 'data-original-title' ,
543
+ passwordPolicy . allowedNonAlphanumericCharacters
544
+ ) ;
545
+ }
539
546
setRequirementStatus (
540
547
'#password-validation-meets-min-length' ,
541
548
status . meetsMinPasswordLength
You can’t perform that action at this time.
0 commit comments