From c6a13b92cdfefa45d5a68b9071eeedc83a1c9130 Mon Sep 17 00:00:00 2001 From: 0x7d5 <86822737+VladimirLapskiy@users.noreply.github.com> Date: Wed, 13 Oct 2021 09:36:11 +0500 Subject: [PATCH] Registration: fix birthday. Again. --- Web/Presenters/AuthPresenter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Presenters/AuthPresenter.php b/Web/Presenters/AuthPresenter.php index 4532df3a..870487c2 100644 --- a/Web/Presenters/AuthPresenter.php +++ b/Web/Presenters/AuthPresenter.php @@ -93,7 +93,7 @@ final class AuthPresenter extends OpenVKPresenter if(!$chUser) $this->flashFail("err", "Не удалось зарегистрироваться", "Пользователь с таким email уже существует."); - if (!strtotime($this->postParam("birthday")) < time()) + if (strtotime($this->postParam("birthday")) > time()) $this->flashFail("err", "Неверная дата рождения", "Дату рождения, которую вы ввели, не является корректным."); $user = new User;