Skip to content

Commit

Permalink
small logic fix for model
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Apr 8, 2010
1 parent e2bc656 commit 3531847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise_imapable/model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3531847

Please sign in to comment.