Allow same email address with different SSO providers

This commit is contained in:
Christoph Haas 2017-04-06 18:31:58 +02:00
parent 381ee35204
commit 63634f00df
3 changed files with 14 additions and 3 deletions

View file

@ -12,7 +12,7 @@ Devise.setup do |config|
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class
# with default "from" parameter.
config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'
config.mailer_sender = 'webmaster@screenshots.debian.net'
# Configure the class responsible to send e-mails.
# config.mailer = 'Devise::Mailer'
@ -35,6 +35,7 @@ Devise.setup do |config|
# You can also supply a hash where the value is a boolean determining whether
# or not authentication should be aborted when the value is not present.
# config.authentication_keys = [:email]
config.authentication_keys = [:email, :provider]
# Configure parameters from the request object used for authentication. Each entry
# given should be a request method and it will automatically be passed to the