projects
/
platal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d74216
)
Set accounts to pending state upon validation.
author
Stéphane Jacob
<sj@m4x.org>
Sat, 16 Apr 2011 19:03:31 +0000
(21:03 +0200)
committer
Stéphane Jacob
<sj@m4x.org>
Sat, 16 Apr 2011 19:03:31 +0000
(21:03 +0200)
Signed-off-by: Stéphane Jacob <sj@m4x.org>
include/validations/account.inc.php
patch
|
blob
|
blame
|
history
diff --git
a/include/validations/account.inc.php
b/include/validations/account.inc.php
index
a2617a8
..
2cbc3cc
100644
(file)
--- a/
include/validations/account.inc.php
+++ b/
include/validations/account.inc.php
@@
-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);