aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index a8fff01a3..be93e655c 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -977,8 +977,10 @@ class Enotify {
static public function format_register($rr) {
$policy = intval(get_config('system','register_policy'));
+
$message = (($rr['reg_vfd']) ? t('verified') : t('not verified'));
- $message .= (($policy == REGISTER_APPROVE) ? ', ' . t('requires approval') : '');
+ if(!$rr['reg_vfd'] && $rr['reg_expires'] < datetime_convert())
+ $message = t('expired');
$x = [
'notify_link' => z_root() . '/admin/accounts',