diff --git a/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb b/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb index 04ede1d29..49cb8a9d1 100644 --- a/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb +++ b/app/models/devise_token_auth/concerns/user_omniauth_callbacks.rb @@ -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