Wouterrr/A1 — Issue #17: Some errors in Model_A1_User_Jelly
Author: artad
Created: 2012-02-22 08:04:29+00:00
State: open

'password' => Jelly::field('password', array(
'hash_with' => array('Model_A1_User_Jelly', 'hash_password'),
'rules' => array(
array('not_empty'),
array('min_length', array(':value', 6)),
array('max_length', array(':value', 50)),
)
))

Rules array must be the first. Before hash_with. Because in case when hash going first, rules accept to hashed string

Rules in password_confim field: apostrophe is on wrong place. Must be:
array('min_length', array(':value', 6)),
array('max_length', array(':value', 50)),

Not:
array('min_length', array(':value, 6')),
array('max_length', array(':value, 50')),