On Fri, Dec 17, 2010 at 5:40 AM, cakey <[email protected]> wrote: > Hi > > I am getting several users (who are competent) reporting issues when > they save their password , and when they next go to login it doesnt > allow them too, although the old one doesnt work either. I think it > might be browser quirk or UTF charset issue or something? Looking for > any ideas really! > > I validate on password with regex /^[\S]{6,30}$/ > > And it seems to work fine with my test ones when I change it - so it > is only occasional. > But I have had a few users report when they change it they cannot then > login again with either new one or old one > - theres a confirm box too so it does get them to put it in twice if > you see what i mean. > Also if it is too short it obviously say s no and doesnt let them put > it in. > > After checking my mysql table for users, it is latin , whereas my app > in core.php is UTF-8 . Most of my other tables are UTF-8 glancing at > them, so I can only assume I mistakenly saved it as latin when I first > wrote the code.
I wouldn't think that's the problem, as the password should be hashed anyway, and the hash would only include chars from latin, AFAIK. > Otherwise, I don't know if it something with the salt, like it doesnt > get salted correctly sometimes, or maybe my db field is wrong type? - > char(40) - if the password gets truncated possibly somehow? Are you sure the changed passwords are being hashed? They should stick out pretty obviously, as they won't be 40 chars. Are you testing locally, or on the live server? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en
