From 187d69902f2009d3b99bd0899307a855b84c3bbc Mon Sep 17 00:00:00 2001 From: Austin Date: Wed, 24 Nov 2021 04:33:00 -0500 Subject: [PATCH] 2fa logout button --- html/2fa.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/html/2fa.php b/html/2fa.php index cb73953..69e94c6 100644 --- a/html/2fa.php +++ b/html/2fa.php @@ -12,6 +12,12 @@ if(isset($_POST['submit_2fa'])) redirect("/"); } +if(isset($_POST['logout'])) +{ + $user->logout(); + redirect("/"); +} + $body = <<
@@ -37,6 +43,9 @@ $body = <<
+
+ +