Validator calls
In
EmailCheckerController.php
line ():
No violations
// This is the email HASH (md5 of the "email" concatenated to "AWSMANAGER_SECRET")
$email = $request->get('email');
$constraint = new Assert\Type('alnum', 'Must be alphanumeric - MD5');
$errors = $validator->validate($email, $constraint);
if (!$email || count($errors)) {
return $this->json($json);
}
[ "value" => "449d121d2283a8d36496cabe351a89c2" "constraints" => Symfony\Component\Validator\Constraints\Type {#771 +payload: null +groups: [ "Default" ] +message: "Must be alphanumeric - MD5" +type: "alnum" } "groups" => null ]