This commit is contained in:
parent
6f7067f052
commit
b19ab097e1
|
@ -118,7 +118,9 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
user.FontSize = args.FontSize
|
user.FontSize = args.FontSize
|
||||||
user.GoFormat = args.GoFmt
|
user.GoFormat = args.GoFmt
|
||||||
user.Workspace = args.Workspace
|
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
|
user.Email = args.Email
|
||||||
|
|
||||||
hash := md5.New()
|
hash := md5.New()
|
||||||
|
|
Loading…
Reference in New Issue