Stores xnet accounts registration date.
authorStéphane Jacob <sj@m4x.org>
Mon, 13 Jun 2011 16:20:51 +0000 (18:20 +0200)
committerStéphane Jacob <sj@m4x.org>
Mon, 13 Jun 2011 16:20:51 +0000 (18:20 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
modules/xnet.php

index 803cfc8..1140b98 100644 (file)
@@ -254,7 +254,7 @@ class XnetModule extends PLModule
 
         if (Post::has('pwhash') && Post::t('pwhash')) {
             XDB::query('UPDATE  accounts
-                           SET  password = {?}, state = \'active\'
+                           SET  password = {?}, state = \'active\', registration_date = NOW()
                          WHERE  uid = {?} AND state = \'pending\' AND type = \'xnet\'',
                        Post::t('pwhash'), $res['uid']);
             XDB::query('DELETE FROM  register_pending_xnet