mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +03:00
The user must agree to the rules in order to register. (#716)
This commit is contained in:
parent
585616c88f
commit
89db5e2192
5 changed files with 30 additions and 1 deletions
14
.idea/deployment.xml
Normal file
14
.idea/deployment.xml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="PublishConfigData">
|
||||||
|
<serverData>
|
||||||
|
<paths name="sftp://176.126.103.81:9482">
|
||||||
|
<serverdata>
|
||||||
|
<mappings>
|
||||||
|
<mapping local="$PROJECT_DIR$" web="/" />
|
||||||
|
</mappings>
|
||||||
|
</serverdata>
|
||||||
|
</paths>
|
||||||
|
</serverData>
|
||||||
|
</component>
|
||||||
|
</project>
|
7
.idea/discord.xml
Normal file
7
.idea/discord.xml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="DiscordProjectSettings">
|
||||||
|
<option name="show" value="ASK" />
|
||||||
|
<option name="description" value="" />
|
||||||
|
</component>
|
||||||
|
</project>
|
|
@ -84,6 +84,9 @@ final class AuthPresenter extends OpenVKPresenter
|
||||||
if (strtotime($this->postParam("birthday")) > time())
|
if (strtotime($this->postParam("birthday")) > time())
|
||||||
$this->flashFail("err", tr("invalid_birth_date"), tr("invalid_birth_date_comment"));
|
$this->flashFail("err", tr("invalid_birth_date"), tr("invalid_birth_date_comment"));
|
||||||
|
|
||||||
|
if (!$this->postParam("confirmation"))
|
||||||
|
$this->flashFail("err", tr("error"), tr("checkbox_in_registration_unchecked"));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$user = new User;
|
$user = new User;
|
||||||
$user->setFirst_Name($this->postParam("first_name"));
|
$user->setFirst_Name($this->postParam("first_name"));
|
||||||
|
|
|
@ -87,12 +87,15 @@
|
||||||
{captcha_template()|noescape}
|
{captcha_template()|noescape}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<input type="hidden" name="hash" value="{$csrfToken}" />
|
<input type="hidden" name="hash" value="{$csrfToken}" />
|
||||||
|
<input type="checkbox" required="true" name="confirmation" /> {_checkbox_in_registration|noescape}
|
||||||
|
<br /><br />
|
||||||
<input type="submit" value="{_registration}" class="button" />
|
<input type="submit" value="{_registration}" class="button" />
|
||||||
<a href="/login">{_log_in}</a>
|
<a href="/login">{_log_in}</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -15,6 +15,8 @@
|
||||||
"password" = "Пароль";
|
"password" = "Пароль";
|
||||||
"registration" = "Регистрация";
|
"registration" = "Регистрация";
|
||||||
"forgot_password" = "Забыли пароль?";
|
"forgot_password" = "Забыли пароль?";
|
||||||
|
"checkbox_in_registration" = "Я согласен с <a href='/privacy'>политикой конфиденциальности</a> и <a href='/about'>правилами сайта</a>";
|
||||||
|
"checkbox_in_registration_unchecked" = "Вы должны согласиться с политикой конфиденциальности и правилами, чтобы зарегистрироваться.";
|
||||||
|
|
||||||
"login_failed" = "Не удалось войти";
|
"login_failed" = "Не удалось войти";
|
||||||
"invalid_username_or_password" = "Неверное имя пользователя или пароль. <a href='/restore'>Забыли пароль?</a>";
|
"invalid_username_or_password" = "Неверное имя пользователя или пароль. <a href='/restore'>Забыли пароль?</a>";
|
||||||
|
|
Loading…
Reference in a new issue