mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Auth: Show /restore only to unauthorized people
This commit is contained in:
parent
8863ededf1
commit
a1be5bb901
1 changed files with 3 additions and 0 deletions
|
@ -215,6 +215,9 @@ final class AuthPresenter extends OpenVKPresenter
|
||||||
|
|
||||||
function renderRestore(): void
|
function renderRestore(): void
|
||||||
{
|
{
|
||||||
|
if(!is_null($this->user))
|
||||||
|
$this->redirect("/id" . $this->user->id, static::REDIRECT_TEMPORARY);
|
||||||
|
|
||||||
if(($this->queryParam("act") ?? "default") === "finish")
|
if(($this->queryParam("act") ?? "default") === "finish")
|
||||||
$this->pass("openvk!Auth->finishRestoringPassword");
|
$this->pass("openvk!Auth->finishRestoringPassword");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue