1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 00:00:00 +00:00

Fix group repo related apis, and add a few unittests

This commit is contained in:
zhengxie
2015-03-20 13:48:40 +08:00
committed by Daniel Pan
parent 6aecc53750
commit 93dee8ed6a
5 changed files with 102 additions and 32 deletions

View File

@@ -30,11 +30,10 @@ define([
if (!attrs.desc) return gettext("Description is required");
if (attrs.encrypted) {
if (!attrs.passwd1) return gettext("Please enter password");
if (!attrs.passwd2) return gettext("Please enter the password again");
if (!attrs.passwd1) return gettext("Please enter password");
if (!attrs.passwd2) return gettext("Please enter the password again");
if (attrs.passwd1.length < app.pageOptions.repo_password_min_length) {
return gettext("Password is too short");
}
if (attrs.passwd1 != attrs.passwd2) return gettext("Passwords don't match");
}