Skip to content

Commit e2262fb

Browse files
committed
Merge pull request #96 from Junnplus/password_length
fix register password length problem
2 parents c005640 + f121a88 commit e2262fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

firefly/static/javascripts/login.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ define(['jquery'], function($) {
5454
registerEnable: function(){
5555
var EmptyInut = $(this).find('input').filter(
5656
function() { return $(this).val() == ""; }),
57+
InputPassword = $(this).find('#inputPassword').val(),
5758
$registerBtn = $('#signupBtn');
58-
if (EmptyInut.length) {
59+
if (EmptyInut.length || InputPassword.length < 8) {
5960
$registerBtn.attr('disabled', 'disabled');
6061
} else {
6162
$registerBtn.removeAttr('disabled');

0 commit comments

Comments
 (0)