diff options
author | Unknwon <u@gogs.io> | 2015-11-23 20:43:04 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-23 20:43:04 -0500 |
commit | ec8d41765d507e1f0b04ccf94dc934a0026498f2 (patch) | |
tree | 31380c0a12e8f3b551d4f1ecfac70712cef2a1a8 /models/user.go | |
parent | ffbeda077cde63ab2893097af2f5c09df5d06b8f (diff) | |
download | gitea-ec8d41765d507e1f0b04ccf94dc934a0026498f2.tar.gz gitea-ec8d41765d507e1f0b04ccf94dc934a0026498f2.zip |
some fix to #2026
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/user.go b/models/user.go index 750f59e5c4..892399c961 100644 --- a/models/user.go +++ b/models/user.go @@ -433,6 +433,7 @@ func CreateUser(u *User) (err error) { return ErrUserAlreadyExist{u.Name} } + u.Email = strings.ToLower(u.Email) isExist, err = IsEmailUsed(u.Email) if err != nil { return err |