Fix forgot password -> code data type checker
This commit is contained in:
parent
3da54bbe17
commit
9e56d83343
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ public class ForgotPassword extends FormResponse{
|
|||
return;
|
||||
}
|
||||
|
||||
if(areValids("code","password")){
|
||||
if(hasFields("code") && areValids("password")){
|
||||
Integer checkCode = codes.get(email);
|
||||
if(checkCode == null){
|
||||
context.response(400);
|
||||
|
|
Loading…
Add table
Reference in a new issue