This commit is contained in:
Liang Ding 2014-12-14 12:27:35 +08:00
parent 9cc20fe032
commit 9cb63171c1
1 changed files with 6 additions and 4 deletions

View File

@ -15,6 +15,8 @@
package session
import (
"crypto/md5"
"encoding/hex"
"encoding/json"
"math/rand"
"net/http"
@ -120,7 +122,7 @@ func PreferenceHandler(w http.ResponseWriter, r *http.Request) {
hash := md5.New()
hash.Write([]byte(user.Email))
user.Gravatar := hex.EncodeToString(hash.Sum(nil))
user.Gravatar = hex.EncodeToString(hash.Sum(nil))
user.Locale = args.Locale
user.Theme = args.Theme