diff options
Diffstat (limited to 'models/user.go')
-rw-r--r-- | models/user.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/user.go b/models/user.go index a68db6cf40..220a9f9a9a 100644 --- a/models/user.go +++ b/models/user.go @@ -1044,7 +1044,7 @@ func ChangeUserName(u *User, newUserName string) (err error) { } else if isExist { return ErrUserAlreadyExist{newUserName} } - + sess := x.NewSession() defer sess.Close() if err = sess.Begin(); err != nil { |