mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-13 22:01:06 +00:00
Enable create repo at myhome and group pages
This commit is contained in:
@@ -32,6 +32,10 @@ define([
|
||||
if (attrs.encrypted) {
|
||||
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