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.GoFormat = args.GoFmt
|
||||
user.Workspace = args.Workspace
|
||||
if user.Password != args.Password {
|
||||
user.Password = conf.Salt(args.Password, user.Salt)
|
||||
}
|
||||
user.Email = args.Email
|
||||
|
||||
hash := md5.New()
|
||||
|
|
Loading…
Reference in New Issue