Skip to content

Commit a95a7b6

Browse files
committed
Fix include password in email
(Optional)
1 parent 60d35f1 commit a95a7b6

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

web/js/pages/add_mail_acc.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,7 @@ randomString = function(min_length = 16) {
128128
generate_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

0 commit comments

Comments
 (0)