mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Validate period attribute on domain create #2763
This commit is contained in:
parent
7a8c7dd39e
commit
e46484405e
2 changed files with 38 additions and 0 deletions
|
@ -161,6 +161,8 @@ class Epp::DomainsController < EppController
|
|||
@prefix = nil
|
||||
requires 'extension > extdata > legalDocument'
|
||||
|
||||
optional_attribute 'period', 'unit', values: %w(d m y)
|
||||
|
||||
status_editing_disabled
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue