#4242: Validation message not displayed on formhelper::password
------------------------+---------------------------------------------------
    Reporter:  ravi     |         Owner:            
        Type:  Bug      |        Status:  closed    
    Priority:  Medium   |     Milestone:  1.2.x.x   
   Component:  Helpers  |       Version:  RC1       
    Severity:  Normal   |    Resolution:  worksforme
    Keywords:           |   Php_version:  PHP 5     
Cake_version:           |  
------------------------+---------------------------------------------------
Comment (by phpfaber):

 Actually I came here with the same problem. My password is empty but was
 validated.
 I have an idea why, but not checked it.
 Once form is sent we will get an array with data where password is hashed
 already.
 And of course, this string will not be empty now.
 E.g. I am using md5 for hashing. My password now will be md5(SALT.'')
 So, for password field you should check if it before hashing, or compare
 it with hash_function(SALT) and if equal the password was empty..
 Make sense?

-- 
Ticket URL: <https://trac.cakephp.org/ticket/4242#comment:3>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" 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/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to