When my user logs in the User.role_id is there in the Auth Session data. 

User] => Array
                (
                    [id] => 4b4fed29-3a54-4c72-964d-01944adcd75b
                    [role_id] => 4b4fe97e-d974-4f49-8793-2ade4adcd75b

My Role.id's are char(36) UUID so i get 4b4fe97e-d974-4f49-8793-2ade4adcd75b
for member for example. How can I change it so I end up with the actual Role
name since looking at the UUID means nothing in terms of understanding which
Role it actully belongs to. Change the relationship key to Role.name from
Role.id in each model?

But in doing so if I did end up with Member, Admin, Other, Whatnot Role
names is there less security since in the session "Admin" is much easier to
guess than 4b4fe97e-d974-4f49-8793-2ade4adcd75b would be if someone was able
to modify the session, or don't even bother worrying about session stealing
/ editing since its almost impossible? I have my sessions in the db.
 
Thanks,
 
Dave

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

Reply via email to