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
-
Bryan Larsen December 3rd, 2010 @ 03:27 PM
- Milestone order changed from 0 to 0
-
Domizio Demichelis December 3rd, 2010 @ 05:01 PM
(see the hobodev post for details http://groups.google.com/group/hobodev/browse_thread/thread/53e9bdb...)
-
Domizio Demichelis December 3rd, 2010 @ 11:59 PM
(from [075c31de3ff5e5aaaf302e16831f2c60464150e4]) fix for password validation overriding [#638] https://github.com/tablatom/hobo/commit/075c31de3ff5e5aaaf302e16831...
-
Bryan Larsen January 15th, 2011 @ 03:17 PM
(from [0bd0550e0483346d9ddda1e38fb2459468182d25]) [#638] make it easier to override password validations. NOTE that this changes the default password validation to 6 characters, one of
which must not be lowercase.
https://github.com/tablatom/hobo/commit/0bd0550e0483346d9ddda1e38fb... -
Bryan Larsen January 16th, 2011 @ 08:27 PM
- State changed from new to resolved
- Milestone set to Hobo 1.1
- Milestone order changed from 197776 to 0
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
Attachments
Referenced by
- 638 password validations are awkward to override (from [075c31de3ff5e5aaaf302e16831f2c60464150e4]) fix for...
- 638 password validations are awkward to override (from [0bd0550e0483346d9ddda1e38fb2459468182d25]) [#638] ...
- 638 password validations are awkward to override (from [c80cc1e636215e7d6f1493ca3db8a47845984095]) [#638] ...