diff options
author | Unknown <joe2010xtmf@163.com> | 2014-05-01 09:00:30 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-05-01 09:00:30 -0400 |
commit | 480a4ae8c558a9946addda06b2a7d4ece8c145af (patch) | |
tree | b06fe0a068e309f59bead93c2c0e5121c3c22741 /models/user.go | |
parent | a2333d95d594a6aa4e77e78c2efe32991d3cf1ef (diff) | |
download | gitea-480a4ae8c558a9946addda06b2a7d4ece8c145af.tar.gz gitea-480a4ae8c558a9946addda06b2a7d4ece8c145af.zip |
Fix #150
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 42b3ebe6ae..22334c8436 100644 --- a/models/user.go +++ b/models/user.go @@ -248,6 +248,7 @@ func ChangeUserName(user *User, newUserName string) (err error) { } for j := range accesses { + accesses[j].UserName = newUserName accesses[j].RepoName = newUserName + "/" + repos[i].LowerName if err = UpdateAccessWithSession(sess, &accesses[j]); err != nil { return err |