summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-12-18 03:26:09 -0500
committerUnknwon <joe2010xtmf@163.com>2014-12-18 03:26:09 -0500
commitc4820f119dc74f85a4abb92294f40a366ab45408 (patch)
tree7d22007c0f096feef0c6fa90b7836a280dc4f1cd /models/user.go
parent57b3be4016f00a91024194bf63af24559d8f4637 (diff)
downloadgitea-c4820f119dc74f85a4abb92294f40a366ab45408.tar.gz
gitea-c4820f119dc74f85a4abb92294f40a366ab45408.zip
work on #754
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go
index 7e6a6c824f..729f2c0c7e 100644
--- a/models/user.go
+++ b/models/user.go
@@ -418,7 +418,7 @@ func ChangeUserName(u *User, newUserName string) (err error) {
// UpdateUser updates user's information.
func UpdateUser(u *User) error {
- has, err := x.Where("id != ?", u.Id).And("email = ?", u.Email).Get(new(User))
+ has, err := x.Where("id!=?", u.Id).And("email=?", u.Email).Get(new(User))
if err != nil {
return err
} else if has {