aboutsummaryrefslogtreecommitdiff
path: root/modules/auth/user.go
diff options
context:
space:
mode:
authorMeaglith Ma <genedna@gmail.com>2014-04-06 17:28:33 +0800
committerMeaglith Ma <genedna@gmail.com>2014-04-06 17:28:33 +0800
commit2e8d5c2eb36b63468dc78561566975c72eeaaefa (patch)
tree92659a09ec784005c8d9a0540e5197a75b0a3ea9 /modules/auth/user.go
parenta044c24c3db4b18b20406045b40e55ce15f941a0 (diff)
parentef6b9784962d3152d3ec46833303bad72915af57 (diff)
Merge remote-tracking branch 'upstream/master'
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",