Quellcode durchsuchen

Merge pull request #7706 from tobiasd/20191006-checknote

add server side check about note to admin
pull/7708/head
Hypolite Petovan vor 2 Jahren
committet von GitHub
Ursprung
Commit
7959b9bbed
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden GPG-Schlüssel-ID: 4AEE18F83AFDEB23
  1. 8
      src/Module/Register.php

8
src/Module/Register.php

@ -259,6 +259,14 @@ class Register extends BaseModule
$a->internalRedirect();
}
// Check if the note to the admin is actually filled out
if (empty($_POST['permonlybox'])) {
\notice(L10n::t('You have to leave a request note for the admin.')
. L10n::t('Your registration can not be processed.') . EOL);
$a->internalRedirect('register/');
}
Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
// invite system

Laden…
Abbrechen
Speichern