Added confirmation when users request another verification email; users are no longer redirected after requesting another verification email

Этот коммит содержится в:
Reed Garmsen
2015-09-21 16:03:18 -07:00
родитель ee5a77ec56
Коммит dda30e407a
2 изменённых файлов: 11 добавлений и 2 удалений

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

@@ -375,7 +375,10 @@ func verifyEmail(c *api.Context, w http.ResponseWriter, r *http.Request) {
} else {
user := result.Data.(*model.User)
api.FireAndForgetVerifyEmail(user.Id, user.Email, team.Name, team.DisplayName, c.GetSiteURL(), c.GetTeamURLFromTeam(team))
http.Redirect(w, r, "/", http.StatusFound)
newAddress := strings.Replace(r.URL.String(), "?resend=true", "?resend_success=true", -1)
newAddress = strings.Replace(newAddress, "&resend=true", "&resend_success=true", -1)
http.Redirect(w, r, newAddress, http.StatusFound)
return
}
}