Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a hook to Register.php #1

Open
live627 opened this issue Oct 13, 2023 · 0 comments
Open

Add a hook to Register.php #1

live627 opened this issue Oct 13, 2023 · 0 comments

Comments

@live627
Copy link
Owner

live627 commented Oct 13, 2023

* @todo Add a hook to Register.php

<search position="before"><![CDATA[// You can't register if it's disabled.
if (!empty($modSettings['registration_method']) && $modSettings['registration_method'] == 3)
fatal_lang_error('registration_disabled', false);]]></search>
<add><![CDATA[
// You can't register without a reason..
if (empty($_POST['join_reason']) || trim($_POST['join_reason']) == '')
{
loadLanguage('JoinReason');
$reg_errors[] = $txt['error_join_reason_empty'];
}]]></add>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant