Commit 89e41fa746a3f1334341eb9b3a7b18286c48cf97
1 parent
6785e235
Exists in
master
fix: downcase email for find_or_create_by user
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/controllers/scim_rails/scim_users_controller.rb
... | ... | @@ -35,7 +35,7 @@ module ScimRails |
35 | 35 | username_key = ScimRails.config.queryable_user_attributes[:userName] |
36 | 36 | find_by_username = Hash.new |
37 | 37 | user_params = permitted_user_params |
38 | - find_by_username[username_key.to_sym] = permitted_user_params[username_key.to_sym] | |
38 | + find_by_username[username_key.to_sym] = permitted_user_params[username_key.to_sym].downcase | |
39 | 39 | user = @company |
40 | 40 | .public_send(ScimRails.config.scim_users_scope) |
41 | 41 | .find_or_create_by(find_by_username) | ... | ... |
lib/scim_rails/version.rb