Module: Pollett::Concerns::Services::AuthenticateUser
- Extended by:
- ActiveSupport::Concern
- Includes:
- Servitore::Service
- Included in:
- AuthenticateUser
- Defined in:
- lib/pollett/concerns/services/authenticate_user.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/pollett/concerns/services/authenticate_user.rb', line 13 def call Pollett.config.user_model.find_by_normalized_email(email).tap do |u| raise unless u && u.authenticate(password) end end |