2fa logout button

This commit is contained in:
Austin 2021-11-24 04:33:00 -05:00
parent 05e6e99048
commit 187d69902f
1 changed files with 9 additions and 0 deletions

View File

@ -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>