#162 new
Alan Grover

typo in authlogic_openid::attributes_to_save, crypted_password_field, etc.

Reported by Alan Grover | January 6th, 2010 @ 03:08 PM

gem versions
authlogic (2.1.3)
authlogic-oid (1.0.4)

Upon User create (and presumably save), authlogic_openid::attributes_to_save is called and the list of attributes has some names rather than symbols.

NameError (undefined local variable or method crypted_password_field' for...<br/> /usr/local/lib/ruby/gems/1.8/gems/authlogic-oid-1.0.4/lib/authlogic_openid/acts_as_authentic.rb:132:inattributes_to_save'

I presume they are supposed to be symbols:

--- acts_as_authentic.rb.orig   2010-01-06 14:56:37.000000000 -0500
+++ acts_as_authentic.rb        2010-01-06 14:56:41.000000000 -0500
@@ -129,7 +129,7 @@
         # more just override this method and do whatever you want.
         def attributes_to_save # :doc:
           attrs_to_save = attributes.clone.delete_if do |k, v|
-            [:id, :password, crypted_password_field, password_salt_field, :persistence_token, :perishable_token, :single_access_token, :login_count, 
+            [:id, :password, :crypted_password_field, :password_salt_field, :persistence_token, :perishable_token, :single_access_token, :login_count, 
               :failed_login_count, :last_request_at, :current_login_at, :last_login_at, :current_login_ip, :last_login_ip, :created_at,
               :updated_at, :lock_version].include?(k.to_sym)
           end

No comments found

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.

New-ticket Create new ticket

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.

People watching this ticket

Pages