Merge pull request #218 from laf/issue-laf-33

Restore _GET login ability
This commit is contained in:
Paul Gear
2014-05-21 04:38:02 +10:00
+3
View File
@@ -45,6 +45,9 @@ if ($vars['page'] == "logout" && $_SESSION['authenticated'])
if (isset($_POST['username']) && isset($_POST['password'])) {
$_SESSION['username'] = mres($_POST['username']);
$_SESSION['password'] = $_POST['password'];
} elseif(isset($_GET['username']) && isset($_GET['password'])) {
$_SESSION['username'] = mres($_GET['username']);
$_SESSION['password'] = $_GET['password'];
}
if (!isset($config['auth_mechanism']))