1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00
This commit is contained in:
Unknown 2014-05-01 07:59:09 -04:00
parent 2a1dc0085b
commit d0ea4c7b68

View file

@ -176,7 +176,7 @@ type InstallForm struct {
RunUser string `form:"run_user"` RunUser string `form:"run_user"`
Domain string `form:"domain"` Domain string `form:"domain"`
AppUrl string `form:"app_url"` AppUrl string `form:"app_url"`
AdminName string `form:"admin_name" binding:"Required"` AdminName string `form:"admin_name" binding:"Required;AlphaDashDot;MaxSize(30)"`
AdminPasswd string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(30)"` AdminPasswd string `form:"admin_pwd" binding:"Required;MinSize(6);MaxSize(30)"`
AdminEmail string `form:"admin_email" binding:"Required;Email;MaxSize(50)"` AdminEmail string `form:"admin_email" binding:"Required;Email;MaxSize(50)"`
SmtpHost string `form:"smtp_host"` SmtpHost string `form:"smtp_host"`