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:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user