I am not sure what code you have in your verify action, but I would have two
actions verify and confirm

the verify would make a link to the comfirm action.

Verify would check that the hash is associated with an inactive account

Confirm set the coresponding account to active

2008/12/22 gearvOsh <[email protected]>

>
> 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?
> >
>

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