| @@ 399-410 (lines=12) @@ | ||
| 396 | { |
|
| 397 | $email = $params['email']; |
|
| 398 | } |
|
| 399 | if($email === false) |
|
| 400 | { |
|
| 401 | $params = $request->getParsedBody(); |
|
| 402 | if(isset($params['email'])) |
|
| 403 | { |
|
| 404 | $email = $params['email']; |
|
| 405 | } |
|
| 406 | if($email === false) |
|
| 407 | { |
|
| 408 | return $response->withStatus(400); |
|
| 409 | } |
|
| 410 | } |
|
| 411 | if(filter_var($email, FILTER_VALIDATE_EMAIL) === false || strpos($email, '@') === false) |
|
| 412 | { |
|
| 413 | return $response->withJson(false); |
|
| @@ 493-504 (lines=12) @@ | ||
| 490 | { |
|
| 491 | $email = $params['email']; |
|
| 492 | } |
|
| 493 | if($email === false) |
|
| 494 | { |
|
| 495 | $params = $request->getParsedBody(); |
|
| 496 | if(isset($params['email'])) |
|
| 497 | { |
|
| 498 | $email = $params['email']; |
|
| 499 | } |
|
| 500 | if($email === false) |
|
| 501 | { |
|
| 502 | return $response->withStatus(400); |
|
| 503 | } |
|
| 504 | } |
|
| 505 | if(filter_var($email, FILTER_VALIDATE_EMAIL) === false) |
|
| 506 | { |
|
| 507 | return $response->withStatus(400); |
|