Skip to content

Commit 912856b

Browse files
committed
Use full alphabet to generate random passwords
Signed-off-by: Michal Čihař <michal@cihar.com>
1 parent 8dedcc1 commit 912856b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: js/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ function suggestPassword(passwd_form)
319319
// restrict the password to just letters and numbers to avoid problems:
320320
// "editors and viewers regard the password as multiple words and
321321
// things like double click no longer work"
322-
var pwchars = "abcdefhjmnpqrstuvwxyz23456789ABCDEFGHJKLMNPQRSTUVWYXZ";
322+
var pwchars = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWYXZ";
323323
var passwordlength = 16; // do we want that to be dynamic? no, keep it simple :)
324324
var passwd = passwd_form.generated_pw;
325325
var randomWords = new Int32Array(passwordlength);

0 commit comments

Comments
 (0)