lib/devise/strategies/imap_authenticatable.rb
# Authenticate a user based on email and password params, returning to warden
# success and the authenticated user if everything is okay. Otherwise redirect
# to sign in page.
#
# rubocop:disable Style/SignalException
Authenticate a user based on email and password params, returning to warden
success and the authenticated user if everything is okay. Otherwise redirect
to sign in page.


Authenticate a user based on email and password params returning to warden success and the authenticated user if everything is okay . Otherwise redirect to sign in page .
def authenticate!
        resource = mapping.to.find_for_imap_authentication(authentication_hash)
        return fail!(:invalid) unless resource
        email = resource.send(::Devise.imap_email_attribute)
        return fail(:invalid) unless Devise::Imap::Adapter.valid_credentials?(email, password)
        resource.imap_password = password
        remember_me(resource)
        resource.after_imap_authentication
        success!(resource)
      end
def authenticate! resource = mapping . to . find_for_imap_authentication ( authentication_hash ) return fail! ( :invalid ) unless resource email = resource . send ( :: Devise . imap_email_attribute ) return fail ( :invalid ) unless Devise :: Imap :: Adapter . valid_credentials? ( email , password ) resource . imap_password = password remember_me ( resource ) resource . after_imap_authentication success! ( resource ) end
Authenticate a user based on email and password params, returning to warden
success and the authenticated user if everything is okay.
Authenticate a user based on email and password params returning to warden success and the authenticated user if everything is okay .