summaryrefslogtreecommitdiffstats
path: root/modules/auth/user.go
diff options
context:
space:
mode:
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 2d3c29fde1..015059f7dc 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",