Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

small logic fix for model

  • Loading branch information...
commit 3531847c1cbc186f5dbaf2b0f80fda620679d8ab 1 parent e2bc656
@joshk authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/devise_imapable/model.rb
View
2  lib/devise_imapable/model.rb
@@ -35,7 +35,7 @@ def authenticate_with_imap(attributes={})
return unless attributes[:email].present?
conditions = attributes.slice(:email)
- unless conditions[:email] && conditions[:email].include?('@') && !Devise.default_email_suffix
+ unless conditions[:email] && conditions[:email].include?('@') && Devise.default_email_suffix
conditions[:email] = "#{conditions[:email]}@#{Devise.default_email_suffix}"
end
Please sign in to comment.
Something went wrong with that request. Please try again.