I think the changes are available when the validations run, so maybe it's as simple as adding "password_changed &&" to the front of the password validation.
Bryan On Fri, Nov 30, 2012 at 3:47 PM, kevinpfromnm <[email protected]> wrote: > I'm trying to add a mass delete option for users to be able to purge their > current items. I figured having them validate their password would be a > good bit of security added since it's a pretty destructive option. The > current lifecycle almost makes this easy (since the transition is on the > user model) by adding current_password to the params. This works but for > one snag, it tries to validate password field, ie length, more than just > lowercase, etc. > > So, hoping there's a simple way to ignore that validation or tweak the > validation so it doesn't apply when password is nil. It'd be really cool to > be able to add a simple password validation to user transitions by adding > :available_to => :self, :params => [ :current_password ] > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/hobousers/-/KTf84b8YUGMJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
