Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-13T15:36:48.820Z
Answers.LastActivityDate: 2019-05-13T15:36:48.820Z
Answers.UserDisplayName: migmaker
Body: <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>
  
Tags: <users><registration>
Title: Autologin after frontend registration
ThreadText: # 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,
  
  ```
  
  
  ---
  
  