add server side check about note to admin

This commit is contained in:
Tobias Diekershoff 2019-10-06 11:57:43 +02:00
부모 8f60536634
커밋 cbaa4d13d1
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@ -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