summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-17 15:32:33 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-17 15:32:33 -0400
commit9eabbe68a67cf1549c5eae0ef6ff5f2e54d7efbe (patch)
tree649d6e9ff839a1b277e2e798ac34a1ba06a70e2d /models/user.go
parentb3dc159c4502d24bdf1513a47c17722161830600 (diff)
downloadgitea-9eabbe68a67cf1549c5eae0ef6ff5f2e54d7efbe.tar.gz
gitea-9eabbe68a67cf1549c5eae0ef6ff5f2e54d7efbe.zip
Bug fix
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 3378b882ff..87c644b2b6 100644
--- a/models/user.go
+++ b/models/user.go
@@ -190,7 +190,7 @@ func (user *User) EncodePasswd() error {
// UserPath returns the path absolute path of user repositories.
func UserPath(userName string) string {
- return filepath.Join(RepoRootPath, userName)
+ return filepath.Join(RepoRootPath, strings.ToLower(userName))
}
func GetUserByKeyId(keyId int64) (*User, error) {