aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/user.go
diff options
context:
space:
mode:
author无闻 <joe2010xtmf@163.com>2014-04-04 10:40:14 -0400
committer无闻 <joe2010xtmf@163.com>2014-04-04 10:40:14 -0400
commit3a23476dbef0bb90ce5e8bc4c7ab8929bc04bb1b (patch)
tree8cfb016c545a0b7583fcb7e7acc5a11fc11c20a2 /modules/auth/user.go
parent48d3a1fef12242c6f5c1848ca58e02d946a709da (diff)
parent75db79b4b6bcb8f61dd957c9bd21b32d4746f866 (diff)
Merge pull request #61 from gogits/dev
Dev
Diffstat (limited to 'modules/auth/user.go')
-rw-r--r--modules/auth/user.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/auth/user.go b/modules/auth/user.go
index 2d3c29fd..015059f7 100644
--- a/modules/auth/user.go
+++ b/modules/auth/user.go
@@ -75,6 +75,7 @@ type FeedsForm struct {
}
type UpdateProfileForm struct {
+ UserName string `form:"username" binding:"Required;AlphaDash;MaxSize(30)"`
Email string `form:"email" binding:"Required;Email;MaxSize(50)"`
Website string `form:"website" binding:"MaxSize(50)"`
Location string `form:"location" binding:"MaxSize(50)"`
@@ -83,6 +84,7 @@ type UpdateProfileForm struct {
func (f *UpdateProfileForm) Name(field string) string {
names := map[string]string{
+ "UserName": "Username",
"Email": "E-mail address",
"Website": "Website",
"Location": "Location",