Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

update model to user dynamic username columnts

  • Loading branch information...
commit 54dbe11138b128696c11194681290580641ef8c4 1 parent 992c71f
Raphael Randschau nicolai86 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/devise_cas_authenticatable/model.rb
2  lib/devise_cas_authenticatable/model.rb
@@ -19,7 +19,7 @@ def authenticate_with_cas_ticket(ticket)
19 19 ::Devise.cas_client.validate_service_ticket(ticket) unless ticket.has_been_validated?
20 20
21 21 if ticket.is_valid?
22   - conditions = {:email => ticket.response.user}
  22 + conditions = {::Devise.cas_username_column => ticket.response.user}
23 23
24 24 # We don't want to override Devise 1.1's find_for_authentication
25 25 resource = if respond_to?(:find_for_authentication)

0 comments on commit 54dbe11

Please sign in to comment.
Something went wrong with that request. Please try again.