This commit is contained in:
Liang Ding 2014-12-25 22:13:47 +08:00
parent 6f7067f052
commit b19ab097e1
1 changed files with 3 additions and 1 deletions

View File

@ -118,7 +118,9 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
user.FontSize = args.FontSize
user.GoFormat = args.GoFmt
user.Workspace = args.Workspace
user.Password = conf.Salt(args.Password, user.Salt)
if user.Password != args.Password {
user.Password = conf.Salt(args.Password, user.Salt)
}
user.Email = args.Email
hash := md5.New()