<p>The config settings you're looking for are probably '<a href="http://buildwithcraft.com/docs/config-settings#activateAccountSuccessPath" rel="nofollow">activateAccountSuccessPath</a>' and '<a href="http://buildwithcraft.com/docs/config-settings#autoLoginAfterAccountActivation" rel="nofollow">autoLoginAfterAccountActivation</a>'.</p>

CC BY-SA 3.0
2014-10-17T19:04:14.987Z
I would expect that the [autoLoginAfterAccountActiviation](http://buildwithcraft.com/docs/config-settings#autoLoginAfterAccountActivation) would accomplish the goal of logging them in immediately. Why does this not work?
kevinsbarr
CC BY-SA 3.0
2014-10-17T19:22:56.470Z
Ahh, yeah.  Forgot about that one.  Will update the answer.
Brad Bell
CC BY-SA 3.0
2014-10-17T19:44:24.023Z
autoLoginAfterAccountActivation doesn't seem to be working for us. activateAccountSuccessPath is working.
kevinsbarr
CC BY-SA 3.0
2014-10-17T21:53:22.393Z
You have it set to true? (no quotes)
Brad Bell
CC BY-SA 3.0
2014-10-20T14:17:59.870Z
Ah, my bad. I had quotes around 'true'. Now it's working as expected - thanks!
kevinsbarr
CC BY-SA 3.0
2014-10-17T18:14:53.417Z
2014-10-17T19:24:10.100Z
2014-10-17T19:24:10.100Z
Brad Bell
<p>When a user registers on the front-end of our site, we'd like the default behavior be that when they click on the confirmation link in the email they receive, they are automatically logged in and taken to a "My Account" page that we've created. Is this possible? Right now, they're redirected to the home page, and it doesn't appear that they're logged in.</p>

<p>We updated the <a href="http://buildwithcraft.com/docs/config-settings#postLoginRedirect" rel="nofollow">postLoginRedirect</a> variable in our config to the My Account page, but that didn't seem to do the trick.</p>

<users><redirect>
How to Redirect After Successful Registration Confirmation
# How to Redirect After Successful Registration Confirmation

(Asked by: username_0 on 2014-10-17)

When a user registers on the front-end of our site, we'd like the default behavior be that when they click on the confirmation link in the email they receive, they are automatically logged in and taken to a "My Account" page that we've created. Is this possible? Right now, they're redirected to the home page, and it doesn't appear that they're logged in.

We updated the [postLoginRedirect](http://buildwithcraft.com/docs/config-settings#postLoginRedirect) variable in our config to the My Account page, but that didn't seem to do the trick.

**Tags:** users, redirect

---

## 1 answers

### Answer by username_1 on 2014-10-17. Score: 4 | Accepted answer

The config settings you're looking for are probably '[activateAccountSuccessPath](http://buildwithcraft.com/docs/config-settings#activateAccountSuccessPath)' and '[autoLoginAfterAccountActivation](http://buildwithcraft.com/docs/config-settings#autoLoginAfterAccountActivation)'.

> **Comments:**
> **username_0**: I would expect that the [autoLoginAfterAccountActiviation](http://buildwithcraft.com/docs/config-settings#autoLoginAfterAccountActivation) would accomplish the goal of logging them in immediately. Why does this not work?  
> **username_1**: Ahh, yeah.  Forgot about that one.  Will update the answer.  
> **username_0**: autoLoginAfterAccountActivation doesn't seem to be working for us. activateAccountSuccessPath is working.  
> **username_1**: You have it set to true? (no quotes)  
> **username_0**: Ah, my bad. I had quotes around 'true'. Now it's working as expected - thanks!  

---

