mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Do not allow log in if password update fails
This commit is contained in:
parent
cca934453b
commit
7f04f2e2fe
1 changed files with 1 additions and 0 deletions
|
@ -21,6 +21,7 @@ class Epp::SessionsController < EppController
|
||||||
if @api_user.try(:active) && cert_valid
|
if @api_user.try(:active) && cert_valid
|
||||||
if parsed_frame.css('newPW').first
|
if parsed_frame.css('newPW').first
|
||||||
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
|
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
|
||||||
|
response.headers['X-EPP-Returncode'] = '2200'
|
||||||
handle_errors(@api_user) and return
|
handle_errors(@api_user) and return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue