Added confirmation when users request another verification email; users are no longer redirected after requesting another verification email
Этот коммит содержится в:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user