frontend: deny hint reveal after challenge's end + respond with 410 GONE

This commit is contained in:
nemunaire 2018-12-01 18:26:11 +01:00
commit a06a256c21
2 changed files with 7 additions and 1 deletions

View file

@ -10,7 +10,7 @@ import (
func SubmissionHandler(w http.ResponseWriter, r *http.Request, team string, sURL []string) {
if time.Now().Sub(challengeEnd) > 0 {
http.Error(w, "{\"errmsg\":\"Vous ne pouvez plus soumettre, le challenge est terminé.\"}", http.StatusForbidden)
http.Error(w, "{\"errmsg\":\"Vous ne pouvez plus soumettre, le challenge est terminé.\"}", http.StatusGone)
return
}