mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +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 parsed_frame.css('newPW').first
|
||||
unless @api_user.update(password: parsed_frame.css('newPW').first.text)
|
||||
response.headers['X-EPP-Returncode'] = '2200'
|
||||
handle_errors(@api_user) and return
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue