mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) when an empty data was retured by the SSO, unable to edit it
This commit is contained in:
parent
46b2ba1f54
commit
0510a5f3a3
@ -15,6 +15,7 @@
|
||||
- Fixed all react components code according to eslint rules
|
||||
- Renamed proof-of-identity to supporting-documents in react components and in end-user strings
|
||||
- Fix a bug: when email was mapped from SSO provided as empty string -> unable to merge account
|
||||
- Fix a bug: when an empty data was retured by the SSO, unable to edit it
|
||||
- Fix a bug: the birthdate was not marked as required, in the profile edition form
|
||||
- Fix a bug: when the phone or the address were required, they were not marked as this, in the profile edition form
|
||||
- Fix a bug: the birthday was not shown in user edition form
|
||||
|
@ -70,7 +70,7 @@ module SingleSignOnConcern
|
||||
profile[sso_mapping[8..-1].to_sym] = data unless data.nil?
|
||||
end
|
||||
end
|
||||
return if data.nil? || mapped_from_sso&.include?(sso_mapping)
|
||||
return if data.nil? || data.blank? || mapped_from_sso&.include?(sso_mapping)
|
||||
|
||||
self.mapped_from_sso = [mapped_from_sso, sso_mapping].compact.join(',')
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user