On Dec 22, 3:34 am, gearvOsh <[email protected]> wrote:
> So I have an action that verifies an email address after a successful
> signup. It uses a hash that was given in the email sent out.
>
> function verify($hash = '') {
>
> }
>
> This is my test hash and the url becomes: /users/verify/
> eac20adf536b50f9fc0be58550fde763
>
> When I go to that page, and even without submitting a form or doing
> any data checking, this query is ran.
>
> SELECT COUNT(*) AS `count` FROM `users` AS `User` WHERE `User`.`id` =
> 'eac20adf536b50f9fc0be58550fde763'
>
> Why is it grabbing the hash from the controller action and running a
> query when no interaction is made?

Because most of the time the first parameter is the id, and cake sets
that for you automatically ( I would have thought from your previous
thread you'd have picked that up already ;) ).

AD
--~--~---------~--~----~------------~-------~--~----~
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