fix check int in form response

This commit is contained in:
jeffcheasey88 2023-09-09 20:11:46 +02:00
parent 76e9c4376a
commit 12e0bd7bac

View file

@ -71,7 +71,7 @@ public class MailConfirmation extends FormResponse {
return; return;
} }
JSONObject json = json(reader); JSONObject json = json(reader);
if(!areValids("email","code","pseudo","firstname","lastname","passwd")){ if((!areValids("email","pseudo","firstname","lastname","passwd")) || (!hasFields("code"))){
context.response(400); context.response(400);
return; return;
} }