fix check int in form response
This commit is contained in:
parent
76e9c4376a
commit
12e0bd7bac
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue