This isn’t an email notification solution - but it does automatically ’Block’ new webusers when they signup. If a person creates a new web user account, and you want to ’approve’ new accounts before letting them loose, then all you do is manage web users and ’unblock’ anyone you deem to be approvable. This does mean checking web users ’sometimes... hahaha’ - but at least it’s better than having strangers signing up and having access immediately without any controls
Edit websignupinc.php
Change this code
// save user attributes
$sql = "INSERT INTO ".$modx->getFullTableName("web_user_attributes")." (internalKey, fullname, email, zip, state, country)
VALUES($key, '$fullname', '$email', '$zip', '$state', '$country');";
$rs = $modx->db->query($sql);
if(!$rs){
$output = webLoginAlert("An error occured while attempting to save the user's attributes.").$tpl;
return;
}
To this code
// save user attributes
$blocked=1;
$sql = "INSERT INTO ".$modx->getFullTableName("web_user_attributes")." (internalKey, fullname, email, zip, state, country, blocked)
VALUES($key, '$fullname', '$email', '$zip', '$state', '$country', '$blocked');";
$rs = $modx->db->query($sql);
if(!$rs){
$output = webLoginAlert("An error occured while attempting to save the user's attributes.").$tpl;
return;
}
I tested and works purrrr fectly