X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fregister.php;h=34c3ed1412d27663032218b0269f493af1deecb8;hb=4baa73230fd89061a8e53904cf633e10c42d8603;hp=9c90e09587ad03935388c34bfe4cb7b675c522ea;hpb=93d42b4fcc6f055a428c9b63e386ac62c918d08a;p=platal.git diff --git a/modules/register.php b/modules/register.php index 9c90e09..34c3ed1 100644 --- a/modules/register.php +++ b/modules/register.php @@ -248,7 +248,7 @@ class RegisterModule extends PLModule } $page->changeTpl('register/step' . $subState->i('step') . '.tpl'); - $page->addJsLink('motdepasse.js'); + $page->addJsLink('password.js'); if (isset($error)) { $page->trigError($error); } @@ -329,7 +329,7 @@ class RegisterModule extends PLModule // XDB::execute("UPDATE accounts SET password = {?}, state = 'active', - registration_date = NOW() + registration_date = NOW(), email = NULL WHERE uid = {?}", $password, $uid); XDB::execute("UPDATE profiles SET birthdate = {?}, last_change = NOW() @@ -395,7 +395,7 @@ class RegisterModule extends PLModule $mymail->send(); // Index the user, to allow her to appear in searches. - Profile::rebuildSearchTokens($uid); + Profile::rebuildSearchTokens($pid); // Notify other users which were watching for her arrival. XDB::execute('REPLACE INTO contacts (uid, contact)