mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
Applications housekeeping
This commit is contained in:
parent
c5b2783fbf
commit
fdd4ecd1af
1 changed files with 11 additions and 1 deletions
|
@ -1061,7 +1061,17 @@ class ApplicationsController extends Controller
|
|||
$registrant_id = $domain['registrant'];
|
||||
$authinfo = $domain['authinfo'];
|
||||
$registrar_id_domain = $domain['clid'];
|
||||
|
||||
|
||||
$domain_already_exist = $db->selectValue(
|
||||
'SELECT id FROM domain WHERE name = ? LIMIT 1',
|
||||
[$domainName]
|
||||
);
|
||||
|
||||
if ($domain_already_exist) {
|
||||
$this->container->get('flash')->addMessage('error', 'Error creating application: Domain name already active');
|
||||
return $response->withHeader('Location', '/domains')->withStatus(302);
|
||||
}
|
||||
|
||||
$parts = extractDomainAndTLD($domainName);
|
||||
$label = $parts['domain'];
|
||||
$domain_extension = '.' . strtoupper($parts['tld']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue