more register_approve stuff - like the admin page. Hopefully this won't conflict with Thomas's admin page "list users" changes

This commit is contained in:
friendica
2013-02-08 03:51:31 -08:00
parent 07e0ffd7c7
commit 62afdf3820
4 changed files with 12 additions and 8 deletions

View File

@@ -317,6 +317,11 @@ function user_allow($hash) {
intval(ACCOUNT_BLOCKED),
intval($register[0]['uid'])
);
$r = q("update account set account_flags = (account_flags ^ %d) where (account_flags & %d) and account_id = %d limit 1",
intval(ACCOUNT_PENDING),
intval(ACCOUNT_PENDING),
intval($register[0]['uid'])
);
$r = q("SELECT uid FROM profile WHERE uid = %d AND is_default = 1",
intval($account[0]['account_id'])