"(&(objectClass=inetOrgPerson)(|(sipAuthenticationUser=%s)(telephoneNumber=%s)(homePhone=%s)(mobile=%s)))" \
% (number, number, number, number))
+ @property
+ def pending_registrations(self):
+ res = self.db.get("SELECT COUNT(*) AS c FROM account_activations")
+
+ return res.c or 0
+
async def check_spam(self, uid, email, address):
sfs = StopForumSpam(self.backend, uid, email, address)
<h1>{{ backend.accounts.count_created_after(t) }}</h1>
<h5 class="mb-0">{{ _("Created This Month") }}</h5>
+
+ {% set pending_registrations = backend.accounts.pending_registrations %}
+ {% if pending_registrations %}
+ <hr>
+
+ <h1>{{ pending_registrations }}</h1>
+ <h5 class="mb-0">{{ _("Pending Registrations") }}</h5>
+ {% end %}
</div>
</div>
</div>