fix email for
- registration request - registration approval - account created by admin add a reditect after registration approval or deny
This commit is contained in:
parent
bec92bf22e
commit
7687342849
4 changed files with 11 additions and 13 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
require_once('include/enotify.php');
|
||||
require_once('include/user.php');
|
||||
|
||||
function user_allow($hash) {
|
||||
|
||||
|
|
@ -119,10 +120,14 @@ function regmod_content(&$a) {
|
|||
|
||||
|
||||
if($cmd === 'deny') {
|
||||
if (!user_deny($hash)) killme();
|
||||
user_deny($hash);
|
||||
goaway("/admin/users/");
|
||||
killme();
|
||||
}
|
||||
|
||||
if($cmd === 'allow') {
|
||||
if (!user_allow($hash)) killme();
|
||||
user_allow($hash);
|
||||
goaway("/admin/users/");
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue