Merge pull request #2931 from tobiasd/20161118-issue2926

send email confirming pending registration #2916
This commit is contained in:
Michael Vogel 2016-11-19 15:21:06 +01:00 committed by GitHub
commit ea38af9799
2 changed files with 29 additions and 0 deletions

View file

@ -133,6 +133,7 @@ function register_post(&$a) {
$admin_mail_list
);
// send notification to admins
foreach ($adminlist as $admin) {
notification(array(
'type' => NOTIFY_SYSTEM,
@ -149,6 +150,11 @@ function register_post(&$a) {
'show_in_notification_page' => false
));
}
// send notification to the user, that the registration is pending
send_register_pending_eml(
$user['email'],
$a->config['sitename'],
$user['username']);
info( t('Your registration is pending approval by the site owner.') . EOL ) ;
goaway(z_root());