瀏覽代碼

Merge pull request #7706 from tobiasd/20191006-checknote

add server side check about note to admin
tags/2019.12
Hypolite Petovan 1 年之前
committed by GitHub
父節點
當前提交
7959b9bbed
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      src/Module/Register.php

+ 8
- 0
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


Loading…
取消
儲存