mirror of
https://github.com/getnamingo/registry.git
synced 2025-06-25 21:54:46 +02:00
Merge branch 'main' of https://github.com/getnamingo/registry
This commit is contained in:
commit
0eb4ee83da
1 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ class ContactsController extends Controller
|
||||||
if ($invalid_identifier) {
|
if ($invalid_identifier) {
|
||||||
return view($response, 'admin/contacts/createContact.twig', [
|
return view($response, 'admin/contacts/createContact.twig', [
|
||||||
'contactID' => $contactID,
|
'contactID' => $contactID,
|
||||||
'error' => 'Invalid contact ID',
|
'error' => $invalid_identifier,
|
||||||
'registrars' => $registrars,
|
'registrars' => $registrars,
|
||||||
'countries' => $countries,
|
'countries' => $countries,
|
||||||
'registrar' => $registrar,
|
'registrar' => $registrar,
|
||||||
|
@ -701,7 +701,7 @@ class ContactsController extends Controller
|
||||||
// Validation for contact ID
|
// Validation for contact ID
|
||||||
$invalid_identifier = validate_identifier($identifier);
|
$invalid_identifier = validate_identifier($identifier);
|
||||||
if ($invalid_identifier) {
|
if ($invalid_identifier) {
|
||||||
$this->container->get('flash')->addMessage('error', 'Invalid contact ID');
|
$this->container->get('flash')->addMessage('error', $invalid_identifier);
|
||||||
return $response->withHeader('Location', '/contacts')->withStatus(302);
|
return $response->withHeader('Location', '/contacts')->withStatus(302);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1080,4 +1080,4 @@ class ContactsController extends Controller
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue