Skip to content

Commit

Permalink
disable sign-in token when mailer disabled (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguida committed Feb 26, 2022
1 parent 1d2724a commit c426115
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module SignInTokenAuthenticationConcern
end

def sign_in_token_required?
return false if Rails.configuration.x.disable_mailer
find_user&.suspicious_sign_in?(request.remote_ip)
end

Expand Down

0 comments on commit c426115

Please sign in to comment.