Skip to content

Commit

Permalink
Add case sensitive option required to prevent deprecation warning in …
Browse files Browse the repository at this point in the history
  • Loading branch information
niciliketo authored and MaicolBen committed Jan 9, 2020
1 parent 612af3c commit 00d7abc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module DeviseTokenAuth::Concerns::UserOmniauthCallbacks
validates_presence_of :uid, unless: :email_provider?

# only validate unique emails among email registration users
validates :email, uniqueness: { scope: :provider }, on: :create, if: :email_provider?
validates :email, uniqueness: { case_sensitive: false, scope: :provider }, on: :create, if: :email_provider?

# keep uid in sync with email
before_save :sync_uid
Expand Down

0 comments on commit 00d7abc

Please sign in to comment.