Merge branch 'xorg/maint' into xorg/master
authorStéphane Jacob <sj@m4x.org>
Sat, 16 Apr 2011 22:00:04 +0000 (00:00 +0200)
committerStéphane Jacob <sj@m4x.org>
Sat, 16 Apr 2011 22:00:04 +0000 (00:00 +0200)
include/validations/account.inc.php

index a2617a8..2cbc3cc 100644 (file)
@@ -89,6 +89,10 @@ class AccountReq extends Validate
     public function commit()
     {
         $hash = rand_url_id(12);
+        XDB::execute('UPDATE  accounts
+                         SET  state = \'pending\'
+                       WHERE  uid = {?}',
+                     $this->uid);
         XDB::execute('INSERT INTO  register_pending_xnet (uid, hruid, email, date, hash)
                            VALUES  ({?}, {?}, {?}, NOW(), {?})',
                      $this->uid, $this->hruid, $this->email, $hash);