Use User.FirstName instead of trying to infer a user's first name from their nickname in multiple places.

Этот коммит содержится в:
hmhealey
2015-07-13 10:22:10 -04:00
родитель 31415c8ddc
Коммит fb42a74613
3 изменённых файлов: 5 добавлений и 10 удалений

Просмотреть файл

@@ -351,7 +351,7 @@ func verifyEmail(c *api.Context, w http.ResponseWriter, r *http.Request) {
return
} else {
user := result.Data.(*model.User)
api.FireAndForgetVerifyEmail(user.Id, strings.Split(user.Nickname, " ")[0], user.Email, domain, c.TeamUrl)
api.FireAndForgetVerifyEmail(user.Id, user.FirstName, user.Email, domain, c.TeamUrl)
http.Redirect(w, r, "/", http.StatusFound)
return
}