minLength data validation is not working with Auth component for CakePHP

Posted by grokker on Stack Overflow See other posts from Stack Overflow or by grokker
Published on 2010-05-01T07:25:58Z Indexed on 2010/05/01 7:27 UTC
Read the original article Hit count: 233

Let's say I have a user registration and I'm using the Auth component (/user/register is allowed of course).

The problem is if I need to set a minLength validation rule in the model, it doesn't work since the Auth component hashes the password therefore it's always more than my minlength password and it passes even if it's blank.

How do I fix this issue? Thanks in advance!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about authentication