Skip to content

Commit

Permalink
[bugfix] prevent devise email uniqueness validation
Browse files Browse the repository at this point in the history
users with different providers should be able to use the same email address. here is the line that we're overriding in devise:
https://github.com/plataformatec/devise/blob/83213569dd77551bb5cac493e2767457970905bc/test/rails_app/lib/shared_admin.rb#L12
  • Loading branch information
lynndylanhurley committed Oct 14, 2017
1 parent eea1dd4 commit a8213a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/devise_token_auth/concerns/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def email_changed?
false
end

def will_save_change_to_email?
false
end

# override devise method to include additional info as opts hash
def send_confirmation_instructions(opts=nil)
unless @raw_confirmation_token
Expand Down

0 comments on commit a8213a8

Please sign in to comment.