module Pollett::Concerns::Services::AuthenticateUser
Public Instance Methods
call()
click to toggle source
# 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 Unauthorized unless u && u.authenticate(password) end end