google-code-backups / yii-usergroups

Automatically exported from code.google.com/p/yii-usergroups
0 stars 0 forks source link

passwordStrength validation for registeration scenario #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. changing the const ROOT value to 0, before installation
2. installing the module
3. trying to register a user

What version of the product are you using? On what operating system?
UG 1.8, Yii 1.1.8, postgresql 8.4

Please provide any additional information below.
in passwordStrength validators (both client and server side), at strengthData() 
there is comparision of user_id with UserGroupsUser::ROOT to set the proper 
strength pattern, 
but user_id is simply the current object id(which in registration scenario is 
always 0, I think).
maybe I'm wrong, but I think the comparison to ROOT should be removed at all.

Original issue reported on code.google.com by APajooha...@gmail.com on 13 Aug 2011 at 9:02