Password validation broken in 0.9.0
Reported by Ineu | November 20th, 2009 @ 09:34 AM
After upgrading from 0.8.10 to 0.9.0 password validation stopped to work. If there are errors in any field (current_password, password, password_confirmation), changing password gives such error:
undefined method `messages' for :hobo:Symbol
with such trace:
/home/ineu/.rvm/gems/ruby/1.8.7/gems/hobo-0.9.0/lib/hobo/user.rb:170:in `validate_current_password_when_changing_password'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:178:in `send'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:178:in `evaluate_method'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:166:in `call'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in `run'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in `each'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in `send'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:90:in `run'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activesupport-2.3.4/lib/active_support/callbacks.rb:276:in `run_callbacks'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activerecord-2.3.4/lib/active_record/validations.rb:1098:in `valid_without_callbacks?'
/home/ineu/.rvm/gems/ruby/1.8.7/gems/activerecord-2.3.4/lib/active_record/callbacks.rb:315:in `valid_without_lifecycles?'
Comments and changes to this ticket
-
Bryan Larsen November 20th, 2009 @ 01:14 PM
fixed that for you. For future reference, google for Markdown.
-
Matt Jones November 22nd, 2009 @ 06:04 PM
- State changed from new to resolved
Fixed in 5aca5af2c6fc6b1b6b2480fc05aa521c91c16c62 - was a missing set of quote marks.
-
Bryan Larsen November 23rd, 2009 @ 01:41 PM
- State changed from resolved to open
Actually, there's another problem: ht was not in scope. I thought I pushed the fix on Friday along with movement of the i18n code into Hobo::Translations, but it was stuck in a different branch. Sorry.
-
Bryan Larsen November 23rd, 2009 @ 01:43 PM
- State changed from open to resolved
(from [4e73c86ad973bc68c62c4fe189e7f3d0d2bf3c03]) [#550 state:resolved] password validation broken http://github.com/tablatom/hobo/commit/4e73c86ad973bc68c62c4fe189e7...
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Referenced by
- 550 Password validation broken in 0.9.0 (from [4e73c86ad973bc68c62c4fe189e7f3d0d2bf3c03]) [#550 s...