settings: Challenge can never ends
This commit is contained in:
parent
d4f69059bf
commit
aad95f1e53
12 changed files with 36 additions and 22 deletions
|
@ -7,7 +7,7 @@ import (
|
|||
)
|
||||
|
||||
func WantChoicesHandler(w http.ResponseWriter, r *http.Request, team string, sURL []string) {
|
||||
if time.Now().After(challengeEnd) {
|
||||
if challengeEnd != nil && time.Now().After(*challengeEnd) {
|
||||
http.Error(w, "{\"errmsg\":\"Le challenge est terminé, trop tard !\"}", http.StatusGone)
|
||||
return
|
||||
}
|
||||
|
|
Reference in a new issue