Skip to content

Commit

Permalink
Be specific about the login field
Browse files Browse the repository at this point in the history
  • Loading branch information
accuser committed Jul 20, 2010
1 parent 93ded25 commit 45b9d5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/user/authentic.rb
Expand Up @@ -4,6 +4,8 @@ def self.included(base)
base.attr_accessible :email, :password, :password_confirmation

base.acts_as_authentic do |config|
config.login_field :email

config.validates_uniqueness_of_email_field_options = {
:case_sensitive => false,
:if => :email_changed?,
Expand Down

0 comments on commit 45b9d5d

Please sign in to comment.