mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
(configurable) auto login after registration
This commit is contained in:
@@ -184,6 +184,14 @@ if($save)
|
||||
}
|
||||
else
|
||||
{
|
||||
if($config['account_create_auto_login']) {
|
||||
$_POST['account_login'] = USE_ACCOUNT_NAME ? $account_name : $account_id;
|
||||
$_POST['password_login'] = $password2;
|
||||
|
||||
require SYSTEM . 'login.php';
|
||||
header('Location: ' . getLink('account/manage'));
|
||||
}
|
||||
|
||||
$twig->display('account.created.html.twig', array(
|
||||
'account' => $tmp_account
|
||||
));
|
||||
|
Reference in New Issue
Block a user