mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 23:16:23 +02:00
fixed registrant sign in
This commit is contained in:
parent
7f41c5c26d
commit
0b9bbc1768
1 changed files with 0 additions and 6 deletions
|
@ -51,8 +51,6 @@ module Api
|
||||||
|
|
||||||
reparsed_request = reparsed_request(request.body.string)
|
reparsed_request = reparsed_request(request.body.string)
|
||||||
|
|
||||||
p '-----'
|
|
||||||
|
|
||||||
disclosed_attributes = reparsed_request[:disclosed_attributes]
|
disclosed_attributes = reparsed_request[:disclosed_attributes]
|
||||||
|
|
||||||
render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? &&
|
||||||
|
@ -158,10 +156,6 @@ module Api
|
||||||
|
|
||||||
def find_contact_and_update_credentials(uuid, name, email, phone)
|
def find_contact_and_update_credentials(uuid, name, email, phone)
|
||||||
contact = current_registrant_user.contacts.find_by!(uuid: uuid)
|
contact = current_registrant_user.contacts.find_by!(uuid: uuid)
|
||||||
p '-----------'
|
|
||||||
p current_registrant_user
|
|
||||||
p current_registrant_user.contacts
|
|
||||||
p '----------'
|
|
||||||
contact.name = name if name.present?
|
contact.name = name if name.present?
|
||||||
contact.email = email if email.present?
|
contact.email = email if email.present?
|
||||||
contact.phone = phone if phone.present?
|
contact.phone = phone if phone.present?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue