aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-05-06 13:54:02 +0000
committerMario <mario@mariovavti.com>2021-05-06 13:54:02 +0000
commit43260891b77a72ab85a613efb45186b2804d7f9b (patch)
tree7c1b1fa8206deba311c4ece7092bc75934674bbb /include/account.php
parentaef035034639211587bda9b98ba46514dac409a4 (diff)
downloadvolse-hubzilla-43260891b77a72ab85a613efb45186b2804d7f9b.tar.gz
volse-hubzilla-43260891b77a72ab85a613efb45186b2804d7f9b.tar.bz2
volse-hubzilla-43260891b77a72ab85a613efb45186b2804d7f9b.zip
register: we have already checked for existing email in check_account_email()
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/account.php b/include/account.php
index 4c5437594..399756ed1 100644
--- a/include/account.php
+++ b/include/account.php
@@ -1295,3 +1295,11 @@ function get_pending_accounts($get_all = false) {
return $r;
}
+
+function remove_expired_registrations() {
+ q("DELETE FROM register WHERE reg_expire < '%s' OR reg_expire = '%s' AND (reg_flags & %d) > 0",
+ dbesc(datetime_convert()),
+ dbesc(NULL_DATE),
+ dbesc(ACCOUNT_UNVERIFIED)
+ );
+}