mirror of
https://github.com/internetee/registry.git
synced 2025-05-21 03:39:40 +02:00
Period validation
This commit is contained in:
parent
6990da7675
commit
1e2dad06f9
6 changed files with 16 additions and 1 deletions
|
@ -25,6 +25,7 @@ module Epp::DomainsHelper
|
|||
name: ph[:name],
|
||||
registrar_id: current_epp_user.registrar.try(:id),
|
||||
registered_at: Time.now,
|
||||
period: ph[:period].to_i,
|
||||
valid_from: Date.today,
|
||||
valid_to: Date.today + ph[:period].to_i.years,
|
||||
auth_info: ph[:authInfo][:pw]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue