Skip to content
Snippets Groups Projects
Commit af01e42f authored by Marius Burkard's avatar Marius Burkard
Browse files

Exclude some characters from password generator (Closes #3429)

parent 447c8380
No related branches found
No related tags found
No related merge requests found
...@@ -153,9 +153,9 @@ function password(minLength, special, num_special){ ...@@ -153,9 +153,9 @@ function password(minLength, special, num_special){
var maxLength = minLength + 5; var maxLength = minLength + 5;
var length = getRandomInt(minLength, maxLength); var length = getRandomInt(minLength, maxLength);
var alphachars = "abcdefghijklmnopqrstuvwxyz"; var alphachars = "abcdefghijkmnopqrstuvwxyz";
var upperchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; var upperchars = "ABCDEFGHJKLMNPQRSTUVWXYZ";
var numchars = "1234567890"; var numchars = "23456789";
var specialchars = "!@#_"; var specialchars = "!@#_";
if(num_special == undefined) num_special = 0; if(num_special == undefined) num_special = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment