Clean up send_reg_approval_email_from_register, new email template

Since there is no easy way to produce direct links to approve/reject
registrations, create new email template which simply links to the
Accounts admin page.

In response to comments:
 - Add type annotations
 - Simplify some 'if' statements
 - add and fix some whitespace
 - simplify input arguments to the function
This commit is contained in:
ltning
2026-01-27 00:49:27 +00:00
committed by Eirik Øverby
parent 0fa4962620
commit e5d4358d61
3 changed files with 33 additions and 16 deletions

View File

@@ -0,0 +1,18 @@
A new user registration request was received at {{$sitename}} which requires
your approval.
The login details are as follows:
Site Location: {{$siteurl}}
Login Name: {{$email}}
IP Address: {{$details}}
To approve or deny this request please visit the Accounts page:
{{$siteurl}}/admin/accounts
Thank you.