Displaying 3 results from an estimated 3 matches for "require_password_confirmation".
2010 Dec 15
2
skip password validation in authlogic
...model.however i can skip phone
number validation like this
validates :phone_number, :numericality => true,:unless
=>Proc.new{|user|user.oauth_user}
def oauth_user
self.authenticated_with?(:facebook) ||
self.authenticated_with?(:twitter)
end
i give like this
acts_as_authentic do |c|
c.require_password_confirmation=false :if
=>Proc.new{|user|user.oauth_user}
c.validate_password_field=false :if =>Proc.new{|user|user.oauth_user}
end
but it does''t work.any help please?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "...
2009 Oct 27
14
Authlogic Password confirmation is too short Error. NEED HELP.
Hi:
I am using authlogic, and following railscast tutorial. I am running
into this error code with the password confirmation.
authlogic password confirmation is too short
Has anyone experienced this error? I need your help.
Thanks in advance for your help.
2010 Jan 26
1
Why does UserSession.find return nil when using user_credentials = single_access_token?
...key = ''user_credentials''
single_access_allowed_request_types = :all
end
class RegisteredUserSession < UserSession
end
class User < ActiveRecord::Base
set_table_name "users"
attr_accessible :display_name, :email, :password
acts_as_authentic do |c|
c.require_password_confirmation = false
end
class << self
def public_hash(obj)
{
:display_name => obj.display_name,
:email => obj.email,
:single_access_token => obj.single_access_token,
:errors => obj.errors
}
end
end
end
class RegisteredUser < User...