1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 16:10:26 +00:00

Change password length of a enc repo to 30

This commit is contained in:
zhengxie
2013-01-25 10:40:21 +08:00
parent bd52fff6f9
commit 4657ed0159
4 changed files with 13 additions and 14 deletions

View File

@@ -41,8 +41,8 @@ $('#repo-create-form').submit(function() {
apply_form_error(form, "{% trans "Password is too short (minimum is 3 characters)" %}");
return false;
}
if ($.trim(passwd.val()).length > 15) {
apply_form_error(form, "{% trans "Password is too long (maximum is 15 characters)" %}");
if ($.trim(passwd.val()).length > 30) {
apply_form_error(form, "{% trans "Password is too long (maximum is 30 characters)" %}");
return false;
}
if (!$.trim(passwd_again.val())) {