From b19ab097e141937564558f7ff58a2dfebbf90f5e Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 25 Dec 2014 22:13:47 +0800 Subject: [PATCH] :bug: --- session/users.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/session/users.go b/session/users.go index 32be8c3..9af2ea6 100644 --- a/session/users.go +++ b/session/users.go @@ -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()