File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -128,8 +128,7 @@ randomString = function(min_length = 16) {
128128generate_mail_credentials = function ( ) {
129129 var div = $ ( '.mail-infoblock' ) . clone ( ) ;
130130 div . find ( '#mail_configuration' ) . remove ( ) ;
131- var pass = div . find ( '#v_password' ) . text ( ) ;
132- if ( pass == "" ) div . find ( '#v_password' ) . text ( ' ' ) ;
131+ var pass = $ ( '#v_password' ) . text ( ) ;
133132 var output = div . text ( ) ;
134133 output = output . replace ( / (?: \r \n | \r | \n | \t ) / g, "|" ) ;
135134 output = output . replace ( / / g, "" ) ;
@@ -163,10 +162,7 @@ $(document).ready(function() {
163162 } ) ;
164163
165164 $ ( '.toggle-psw-visibility-icon' ) . click ( function ( ) {
166- if ( $ ( 'input[name=v_password]' ) . attr ( 'type' ) == 'text' )
167- $ ( '#v_password' ) . text ( $ ( 'input[name=v_password]' ) . val ( ) ) ;
168- else
169- $ ( '#v_password' ) . text ( Array ( $ ( 'input[name=v_password]' ) . val ( ) . length + 1 ) . join ( '*' ) ) ;
165+ $ ( '#v_password' ) . text ( $ ( 'input[name=v_password]' ) . val ( ) ) ;
170166 generate_mail_credentials ( ) ;
171167 } ) ;
172168
You can’t perform that action at this time.
0 commit comments