summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-07 17:22:15 -0500
committerUnknown <joe2010xtmf@163.com>2014-03-07 17:22:15 -0500
commit5a05d6633d413b1c5182a0a542e173f99601a103 (patch)
treeb6d343ca8c998909839d1364f466f7af223fdd1b /models/user.go
parenta2a59f8ad1192d3504abd50b2daf2ebfd97c86ca (diff)
downloadgitea-5a05d6633d413b1c5182a0a542e173f99601a103.tar.gz
gitea-5a05d6633d413b1c5182a0a542e173f99601a103.zip
Merge utils to modules
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/user.go b/models/user.go
index 36cdfc8a43..d904304f51 100644
--- a/models/user.go
+++ b/models/user.go
@@ -14,13 +14,13 @@ import (
"github.com/dchest/scrypt"
- "github.com/gogits/gogs/utils"
+ "github.com/gogits/gogs/modules/base"
)
var UserPasswdSalt string
func init() {
- UserPasswdSalt = utils.Cfg.MustValue("security", "USER_PASSWD_SALT")
+ UserPasswdSalt = base.Cfg.MustValue("security", "USER_PASSWD_SALT")
}
// User types.
@@ -115,7 +115,7 @@ func RegisterUser(user *User) (err error) {
}
user.LowerName = strings.ToLower(user.Name)
- user.Avatar = utils.EncodeMd5(user.Email)
+ user.Avatar = base.EncodeMd5(user.Email)
if err = user.EncodePasswd(); err != nil {
return err
}