
option to validate login *and* email
Reported by Peter Zingg | November 16th, 2008 @ 02:19 PM
I had to add back the email validation stuff, because authlogic appears to take an either-or approach: either you validate login format and uniqueness, or you validate email format and uniqueness, based on options[:login_field_type]. I'd like it if there was a way to validate both.
You can see how I had to add back in the validations (base on restful_authentication) to my user class:
http://github.com/pzingg/baseapp-openid/tree/master/app/models/user.rb
Comments and changes to this ticket
-
Ben Johnson November 16th, 2008 @ 02:27 PM
- State changed from new to open
I agree, I can add this in.
-
Ben Johnson November 16th, 2008 @ 04:12 PM
- State changed from open to resolved
This is done, I added the :email_field option. Checkout the docs: Authlogic::ORMAdapters::ActiveRecordAdapter::ActsAsAuthentic::Config
Let me know if you have any issues.
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.
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.