Permalink
Browse files

update model to user dynamic username columnts

  • Loading branch information...
1 parent 992c71f commit 54dbe11138b128696c11194681290580641ef8c4 @nicolai86 nicolai86 committed May 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/devise_cas_authenticatable/model.rb
@@ -19,7 +19,7 @@ def authenticate_with_cas_ticket(ticket)
::Devise.cas_client.validate_service_ticket(ticket) unless ticket.has_been_validated?
if ticket.is_valid?
- conditions = {:email => ticket.response.user}
+ conditions = {::Devise.cas_username_column => ticket.response.user}
# We don't want to override Devise 1.1's find_for_authentication
resource = if respond_to?(:find_for_authentication)

0 comments on commit 54dbe11

Please sign in to comment.