Skip to content

Commit

Permalink
Allow Creating PIN's with a length of 4 digits
Browse files Browse the repository at this point in the history
  • Loading branch information
heavensrevenge committed Jan 28, 2015
1 parent 6b465d2 commit 6be9c56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion html/options.html
Expand Up @@ -126,7 +126,7 @@ <h2>Selected Profile:</h2>
</div>
<div class="row">
<label for="passwdLength">Password length:</label>
<input class="input testInput" id="passwdLength" min="8" max="512" type="number">
<input class="input testInput" id="passwdLength" min="4" max="512" type="number">
</div>
<div class="row">
<label for="usernameTB">Username:</label>
Expand Down
2 changes: 1 addition & 1 deletion javascript/options.js
Expand Up @@ -346,7 +346,7 @@ function updateShowStrength() {

function testPasswordLength() {
var field = $("#passwdLength");
if (field.val() < 8) field.val(8);
if (field.val() < 4) field.val(4);
if (field.val() > 512) field.val(512);
}

Expand Down

0 comments on commit 6be9c56

Please sign in to comment.