From 1f0813f15ebffa2f41bcd7c686810465b2a62582 Mon Sep 17 00:00:00 2001 From: zhengxie Date: Fri, 29 Mar 2013 16:47:08 +0800 Subject: [PATCH] Fixed password length bug --- group/templates/group/group_info.html | 2 +- templates/file_edit.html | 4 ++-- templates/snippets/events.html | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/group/templates/group/group_info.html b/group/templates/group/group_info.html index dc383b028a..ec72612f7e 100644 --- a/group/templates/group/group_info.html +++ b/group/templates/group/group_info.html @@ -167,7 +167,7 @@

{% trans 'Library' %} {% trans 'is encrypted' %}


- +

{% trans 'The password will be kept in the server for only 1 hour.' %}

diff --git a/templates/file_edit.html b/templates/file_edit.html index 47f025d679..84bd0b6752 100644 --- a/templates/file_edit.html +++ b/templates/file_edit.html @@ -367,8 +367,8 @@ $('#repo-decrypt-form').submit(function() { var err = $(this).find('.error'); if (!pwd) { err.html('{% trans "Password is required." %}'); - } else if (pwd.length < 3 || pwd.length > 15) { - err.html('{% trans "Password should be 3 to 15 characters." %}'); + } else if (pwd.length < 3 || pwd.length > 30) { + err.html('{% trans "Password should be 3 to 30 characters." %}'); } else { $.ajax({ url: '{% url 'repo_set_password' %}', diff --git a/templates/snippets/events.html b/templates/snippets/events.html index 39e2232810..4f6e052eef 100644 --- a/templates/snippets/events.html +++ b/templates/snippets/events.html @@ -8,7 +8,7 @@

{% trans 'Library' %} {% trans 'is encrypted' %}


- +

{% trans 'The password will be kept in the server for only 1 hour.' %}