<p>Oh my god I lost half the day on a syntax error !!</p>

<p>My general.php file had the line with true in quotes :</p>

<pre><code>'autoLoginAfterAccountActivation' =&gt; 'true',
</code></pre>

<p>The correct line to have the parameter work is:</p>

<pre><code>'autoLoginAfterAccountActivation' =&gt; true,
</code></pre>

CC BY-SA 4.0
2019-05-13T15:36:48.820Z
2019-05-13T15:36:48.820Z
migmaker
<p>I have a frontend user account registration form and I d like to auto login the user automatically after the account creation.</p>

<p>So the user can choose a subscription plan and pay immediately after, without having to enter his login and password a second time.</p>

<p>I added the parameter 'autoLoginAfterAccountActivation' but it does not work.</p>

<p>Any idea ?</p>

<users><registration>
Autologin after frontend registration
# Autologin after frontend registration

(Asked by: username_0 on 2019-05-13)

I have a frontend user account registration form and I d like to auto login the user automatically after the account creation.

So the user can choose a subscription plan and pay immediately after, without having to enter his login and password a second time.

I added the parameter 'autoLoginAfterAccountActivation' but it does not work.

Any idea ?

**Tags:** users, registration


---

## 1 answers

### Answer by username_0 on 2019-05-13. Score: 3 | Accepted answer

Oh my god I lost half the day on a syntax error !!
My general.php file had the line with true in quotes :
'autoLoginAfterAccountActivation' => 'true',

The correct line to have the parameter work is:
'autoLoginAfterAccountActivation' => true,


---

