Problem with skipping login validation for authlogic
Posted
by Andrei
on Stack Overflow
See other posts from Stack Overflow
or by Andrei
Published on 2010-05-01T22:16:05Z
Indexed on
2010/05/01
22:27 UTC
Read the original article
Hit count: 243
Hi, I want to use email for signing in, and to allow users to have similar names. One way to do this is to rename login/username field to something different. However, I want to do it just by setting up authlogic
. I tried the following
acts_as_authentic do |c|
c.login_field :email
c.validate_login_field false
c.validate_email_field true
end
but it still complains that the login already exists. What must be done to avoid username validation without renaming the field?
© Stack Overflow or respective owner