1
0
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:
zhengxie
2015-03-19 16:06:20 +08:00
committed by Daniel Pan
parent 27aa7e79d3
commit 1721c06ff4
10 changed files with 46 additions and 73 deletions

View File

@@ -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");
}
}