2fa logout button
This commit is contained in:
parent
05e6e99048
commit
187d69902f
|
|
@ -12,6 +12,12 @@ if(isset($_POST['submit_2fa']))
|
|||
redirect("/");
|
||||
}
|
||||
|
||||
if(isset($_POST['logout']))
|
||||
{
|
||||
$user->logout();
|
||||
redirect("/");
|
||||
}
|
||||
|
||||
$body = <<<EOT
|
||||
<form action="" method="post">
|
||||
<div class="container" align="center" style="display: flex;justify-content: center;align-items: center;text-align: center;min-height: 100vh;">
|
||||
|
|
@ -37,6 +43,9 @@ $body = <<<EOT
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm text-center mt-3">
|
||||
<button name="logout" class="btn btn-danger">Logout</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue