diff --git a/web/templates/admin/add_mail_acc.html b/web/templates/admin/add_mail_acc.html
index 811bc1873..9b68b403a 100644
--- a/web/templates/admin/add_mail_acc.html
+++ b/web/templates/admin/add_mail_acc.html
@@ -49,6 +49,11 @@
randomstring += chars.substring(rnum,rnum+1);
}
document.v_add_mail_acc.v_password.value = randomstring;
+
+ if($('input[name=v_password]').attr('type') == 'text')
+ $('#v_password').text(randomstring);
+ else
+ $('#v_password').text(Array(randomstring.length+1).join('*'));
}
$(document).ready(function() {
$('#v_account').text($('input[name=v_account]').val());