mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
Change password length of a enc repo to 30
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
{% endif %}
|
||||
<div class="repo-create-encryption">
|
||||
<input type="checkbox" name="encryption" id="encrypt-switch" /><label>{% trans "Encrypt"%}</label><br />
|
||||
<label>{% trans "Password"%}</label><span class="tip">{% trans "(3-15 characters)"%}</span><br />
|
||||
<label>{% trans "Password"%}</label><span class="tip">{% trans "(at lease 3 characters)"%}</span><br />
|
||||
<input type="password" name="passwd" disabled="disabled" class="passwd input-disabled" /><br />
|
||||
<label>{% trans "Password again"%}</label><br />
|
||||
<input type="password" name="passwd_again" disabled="disabled" class="passwd input-disabled" />
|
||||
|
@@ -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())) {
|
||||
|
Reference in New Issue
Block a user