Skip to content

Commit 00d7abc

Browse files
niciliketoMaicolBen
authored andcommitted
Add case sensitive option required to prevent deprecation warning in rails 6 (lynndylanhurley#1368)
1 parent 612af3c commit 00d7abc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module DeviseTokenAuth::Concerns::UserOmniauthCallbacks
99
validates_presence_of :uid, unless: :email_provider?
1010

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

1414
# keep uid in sync with email
1515
before_save :sync_uid

0 commit comments

Comments
 (0)