mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 00:23:19 +02:00
Universal Acceptance Update (2/3)
This commit is contained in:
parent
4fa1289334
commit
f60b59b00b
4 changed files with 53 additions and 18 deletions
|
@ -227,11 +227,11 @@ class ContactsController extends Controller
|
|||
$fax = $normalizedFax['success'];
|
||||
}
|
||||
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||
if (!validateUniversalEmail($email)) {
|
||||
$this->container->get('flash')->addMessage('error', 'Unable to create contact: Email address failed check');
|
||||
return $response->withHeader('Location', '/contact/create')->withStatus(302);
|
||||
}
|
||||
|
||||
|
||||
if (!$authInfo_pw) {
|
||||
$this->container->get('flash')->addMessage('error', 'Unable to create contact: Email contact authinfo missing');
|
||||
return $response->withHeader('Location', '/contact/create')->withStatus(302);
|
||||
|
@ -959,7 +959,7 @@ class ContactsController extends Controller
|
|||
return $response->withHeader('Location', '/contact/update/'.$identifier)->withStatus(302);
|
||||
}
|
||||
|
||||
if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
|
||||
if (!validateUniversalEmail($email)) {
|
||||
$this->container->get('flash')->addMessage('error', 'Unable to update contact: Email address failed check');
|
||||
return $response->withHeader('Location', '/contact/update/'.$identifier)->withStatus(302);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue