Skip to content

Commit

Permalink
Merge pull request #1 from final-gene/improve-password-strength
Browse files Browse the repository at this point in the history
Secure passwords should be longer than 10 or 16 chars.
  • Loading branch information
FrankGiesecke authored Oct 4, 2017
2 parents 9c416a9 + b7897f0 commit 8ea0772
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
4 changes: 2 additions & 2 deletions system/js/password.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,11 @@ $(document).ready(function () {
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
}
else if (type == 2) {
var length = 10;
var length = 32;
var chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
}
else {
var length = 16;
var length = 32;
var chars = '~!@#$%^&*()_+=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';

}
Expand Down

0 comments on commit 8ea0772

Please sign in to comment.