X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fregister.php;h=27478a133c71cb75763b0e8a5c73293bfbb793ae;hb=e9a46d1a6839b5efc9a651a601fca80b9af70e7f;hp=990dee89d3970a7a7e05e82a726e5e49b091b20f;hpb=02673a18a3a05f1633d300d2b1a52018299f8a7d;p=platal.git diff --git a/modules/register.php b/modules/register.php index 990dee8..27478a1 100644 --- a/modules/register.php +++ b/modules/register.php @@ -385,6 +385,10 @@ class RegisterModule extends PLModule } XDB::commit(); + // Try to start a session (so the user don't have to log in); we will use + // the password available in Post:: to authenticate the user. + Platal::session()->start(AUTH_PASSWD); + // Add the registration email address as first and only redirection. require_once 'emails.inc.php'; $user = User::getSilentWithUID($uid); @@ -400,10 +404,6 @@ class RegisterModule extends PLModule update_alias_user($old_account_email, $user->forlifeEmail()); } - // Try to start a session (so the user don't have to log in); we will use - // the password available in Post:: to authenticate the user. - Platal::session()->start(AUTH_PASSWD); - // Subscribe the user to the services she did request at registration time. require_once 'newsletter.inc.php'; foreach (explode(',', $services) as $service) {