]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Merge remote-tracking branch 'upstream/develop' into 1504-contact-update
[friendica.git] / mod / regmod.php
index 05f33ab11fff88031e19e727dc7c5ada7143bc71..53e6716f265c7be0cbec9eb6a7a6b18abd635b9e 100644 (file)
@@ -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();
        }
 }