add server side check about note to admin
This commit is contained in:
parent
8f60536634
commit
cbaa4d13d1
1 changed files with 8 additions and 0 deletions
|
@ -259,6 +259,14 @@ class Register extends BaseModule
|
||||||
$a->internalRedirect();
|
$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']);
|
Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
|
||||||
|
|
||||||
// invite system
|
// invite system
|
||||||
|
|
Loading…
Reference in a new issue