Email Approval token not fully working

Hello guys!

I have the same problem, I’m trying to send to my users a confirmation email before they can see a page marked for members only, but it is not working. I have followed both tutorials
but nothing works for me, I think I am starting to despair. I put my code below, hope you can find my mistake.

Thank you guys, Any suggestion is really appreciated!!!