Log registering IP

Co-authored-by: Celestine <34442450+rem-pai@users.noreply.github.com>
This commit is contained in:
Alma Armas 2021-01-07 16:22:52 +00:00
parent fc9df5624b
commit 343315a858

View file

@ -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());