authlogic-connect-example icon indicating copy to clipboard operation
authlogic-connect-example copied to clipboard

skipping password and email validation

Open justinvj15 opened this issue 14 years ago • 0 comments

I am using authlogic for normal user signup,login and also authlogic connect for facebook and twitter signup,login.I need to skip password and email validation when the user signup using facebook and twitter. How should i implement it? Please help?

user model

acts_as_authentic do |c|
if Proc.new{|user|user.oauth_user}
c.validate_email_field = false c.validate_password_field = false
end end

def oauth_user !(self.authenticated_with?(:facebook) || self.authenticated_with?(:twitter)).nil? end

justinvj15 avatar Apr 29 '11 12:04 justinvj15