Allow updating password via EPP

This commit is contained in:
Martin Lensment 2015-04-06 16:39:58 +03:00
parent a42136268f
commit a79ef51ed9
4 changed files with 53 additions and 0 deletions

View file

@ -2,6 +2,15 @@ require 'open3'
# rubocop: disable Metrics/ClassLength
class ApiUser < User
include EppErrors
def epp_code_map # rubocop:disable Metrics/MethodLength
{
'2306' => [ # Parameter policy error
[:password, :blank]
]
}
end
# TODO: should have max request limit per day
belongs_to :registrar
has_many :contacts