@@ -121,7 +127,7 @@ END;
-
+
@@ -146,7 +152,7 @@ END;
if (isset($pg['icon'])) {
?> get($pg['title']);
?>
@@ -157,13 +163,13 @@ END;
@@ -177,12 +183,12 @@ END;
?>
-
+
+
+
+
+
-/* Authenticate user */
-$userpass_ok = false;
-$multiauth = false;
-if (checkLoginServer()) {
- if (!empty($VARS['progress']) && $VARS['progress'] == "1") {
- if (!CAPTCHA_ENABLED || (CAPTCHA_ENABLED && verifyCaptcheck($VARS['captcheck_session_code'], $VARS['captcheck_selected_answer'], CAPTCHA_SERVER . "/api.php"))) {
- $errmsg = "";
- if (authenticate_user($VARS['username'], $VARS['password'], $errmsg)) {
- switch (get_account_status($VARS['username'])) {
- case "LOCKED_OR_DISABLED":
- $alert = lang("account locked", false);
- break;
- case "TERMINATED":
- $alert = lang("account terminated", false);
- break;
- case "CHANGE_PASSWORD":
- $alert = lang("password expired", false);
- case "NORMAL":
- $userpass_ok = true;
- break;
- case "ALERT_ON_ACCESS":
- sendLoginAlertEmail($VARS['username']);
- $userpass_ok = true;
- break;
- }
- if ($userpass_ok) {
- $_SESSION['passok'] = true; // stop logins using only username and authcode
- if (userHasTOTP($VARS['username'])) {
- $multiauth = true;
- } else {
- doLoginUser($VARS['username'], $VARS['password']);
- header('Location: app.php');
- die("Logged in, go to app.php");
- }
- }
- } else {
- if (!is_empty($errmsg)) {
- $alert = lang2("login server error", ['arg' => $errmsg], false);
- } else {
- $alert = lang("login incorrect", false);
- }
- }
- } else {
- $alert = lang("captcha error", false);
- }
- } else if (!empty($VARS['progress']) && $VARS['progress'] == "2") {
- if ($_SESSION['passok'] !== true) {
- // stop logins using only username and authcode
- sendError("Password integrity check failed!");
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
-
-
-
+
+
+
get($title); ?>
+
+
+
-
-
-
-
-