#72 ✓resolved
Samsonov Ivan

Double validations when login is email.

Reported by Samsonov Ivan | April 2nd, 2009 @ 08:55 AM

Now I must do something like this: acts_as_authentic do |c|

c.login_field = :email
c.crypto_provider = Authlogic::CryptoProviders::BCrypt
c.validates_format_of_login_field_options = {:with => /.*/, :allow_blank => true}
c.validates_length_of_login_field_options = {:within => 0..100}
c.validates_uniqueness_of_login_field_options = {:scope => :id}


If I am not doing this I got two errors instead of one (login already exists email already exist). Also I want to disable some of your validations. How I can done this?

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Object based authentication solution that handles all of the non sense for you. It's as easy as ActiveRecord is with a database.