Member activation query I have a site where am registering users via the front-end.
I want to use email address as username and also want people to define their password on registration.

I have set the following in general.php:

'useEmailAsUsername' =&gt; true,
'autoLoginAfterAccountActivation' =&gt; true,
'activateAccountSuccessPath' =&gt; 'register/success',
'verificationCodeDuration' =&gt; 'P1W'     


However, when a user registers via the front-end - or I resend the activation link via the Control Panel - they are directed to a page/URL eg actions/users/verifyemail?code=XXXX&amp;id=XXXX and get the following error message:

Oops!

Invalid verification code. Please login or reset your password.


Can't figure out why the verification code is not working.
Any suggestions?

Cole
Solved - bizarre one this.
Was using a third-party email service via SMTP and it was manipulating the URL somehow. Switching to use a direct SMTP connection with a specific email account has resolved. 

Go figure!