[IMP] web: generate lowercase password

No more shouting master passwords

closes odoo/odoo#51327

Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
This commit is contained in:
Martin Trigaux
2020-05-15 10:47:55 +00:00
parent 318325a74a
commit 74c1107512
+2 -2
View File
@@ -57,8 +57,8 @@
});
// generate a random master password
// removed I1O0 to avoid confusions
var charset = "ABCDEFGHJKLMNPQRSTUVWXYZ23456789";
// removed l1O0 to avoid confusions
var charset = "abcdefghijkmnpqrstuvwxyz23456789";
var password = "";
for (var i = 0, n = charset.length; i < 12; ++i) {
password += charset.charAt(Math.floor(Math.random() * n));