mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
Domain reservation validation
This commit is contained in:
parent
fb12d056ce
commit
f87c8839be
6 changed files with 36 additions and 6 deletions
|
@ -5,7 +5,7 @@ module Epp::DomainsHelper
|
|||
if domain.save
|
||||
render '/epp/domains/create'
|
||||
else
|
||||
if domain.errors.added?(:name_dirty, :taken)
|
||||
if domain.errors.added?(:name, :taken)
|
||||
@code = '2302'
|
||||
@msg = 'Domain name already exists'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue