#638 ✓resolved
Bryan Larsen

password validations are awkward to override

Reported by Bryan Larsen | February 23rd, 2010 @ 02:31 PM | in Hobo 1.1

The password validations are awkward to override:

module Hobo
  module User
    module ClassMethods
      def password_validations
        validates_length_of :password, :within => 8..40, :if =>  :new_password_required?
      end
  end
end

It appears that Tom's intention was that you would just redefine password_validations in your user model, but by then it's too late. Perhaps an option to hobo_user_model would be a better interface.

Comments and changes to this ticket

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 ยป

People watching this ticket

Attachments

Referenced by

Pages