From 343315a85831da2f8b49cf82e3b89d782c6bd7dd Mon Sep 17 00:00:00 2001 From: Alma Armas Date: Thu, 7 Jan 2021 16:22:52 +0000 Subject: [PATCH] Log registering IP Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com> --- Web/Presenters/AuthPresenter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Web/Presenters/AuthPresenter.php b/Web/Presenters/AuthPresenter.php index b8d3e5d3..7153c15c 100644 --- a/Web/Presenters/AuthPresenter.php +++ b/Web/Presenters/AuthPresenter.php @@ -77,6 +77,7 @@ final class AuthPresenter extends OpenVKPresenter $user->setSex((int) ($this->postParam("sex") === "female")); $user->setEmail($this->postParam("email")); $user->setSince(date("Y-m-d H:i:s")); + $user->setRegistering_Ip(CONNECTING_IP); $user->save(); $this->authenticator->authenticate($chUser->getId());