about summary refs log tree commit diff stats
path: root/login.php
diff options
context:
space:
mode:
authorAndrew Dolgov <noreply@fakecake.org>2018-10-16 09:27:09 +0300
committerAndrew Dolgov <noreply@fakecake.org>2018-10-16 09:27:09 +0300
commitdcffa74b03d56b85b1eb5904a4a2e6aa1818f4b2 (patch)
treed6119c3d486baff05d38e46d6b9e5170f4ad0d57 /login.php
parentb2b9d3649d8e51a756e68aa81e00c87105de4aa3 (diff)
downloadthe-epube-dcffa74b03d56b85b1eb5904a4a2e6aa1818f4b2.tar.gz
the-epube-dcffa74b03d56b85b1eb5904a4a2e6aa1818f4b2.tar.xz
force logout user when login from is rendered
Diffstat (limited to 'login.php')
-rw-r--r--login.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/login.php b/login.php
index ff8fd46..57babb9 100644
--- a/login.php
+++ b/login.php
@@ -35,6 +35,8 @@
 		} else {
 			$login_notice = "Incorrect username or password";
 		}
+	} else {
+		logout_user();
 	}
 
 ?>