Skip to content

Commit

Permalink
Use case insensitive logins
Browse files Browse the repository at this point in the history
  • Loading branch information
jonknapp authored and abevoelker committed Apr 28, 2024
1 parent a4b14c4 commit 8db79dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/devise/passwordless/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class Devise::Passwordless::SessionsController < Devise::SessionsController
def create
if (self.resource = resource_class.find_by(email: create_params[:email]))
if (self.resource = resource_class.find_for_authentication(email: create_params[:email]))
resource.send_magic_link(remember_me: create_params[:remember_me])
if Devise.paranoid
set_flash_message!(:notice, :magic_link_sent_paranoid)
Expand Down

0 comments on commit 8db79dd

Please sign in to comment.