search for: validate_password_field

Displaying 2 results from an estimated 2 matches for "validate_password_field".

2010 Dec 15
2
skip password validation in authlogic
...ber, :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 "Ruby on Rails: Talk" group. To post to this group, send email to rub...
2009 Nov 01
0
Change authlogic config at runtime
Hi, I''m trying to change my authlogic configuration at runtime like follows: def save_without_session_maintenance_and_allow_blank_password return false if facebook_uid.blank? object = Mutex.new tmp = nil object.synchronize do User.validate_password_field false tmp = save_without_session_maintenance User.validate_password_field=true end tmp end This does not work. It still validates the password field. Any help? Thanks, Sam -- Posted via http://www.ruby-forum.com/.