diff --git a/index.php b/index.php index 3962d33d..d9db0e74 100644 --- a/index.php +++ b/index.php @@ -1273,7 +1273,7 @@ public function logVersion() { } // Check for authentication -$password = isset($_SERVER['HTTP_X_UPDATER_AUTH']) ? $_SERVER['HTTP_X_UPDATER_AUTH'] : ''; +$password = isset($_SERVER['HTTP_X_UPDATER_AUTH']) ? $_SERVER['HTTP_X_UPDATER_AUTH'] : (isset($_POST['updater-secret-input']) ? $_POST['updater-secret-input'] : ''); $auth = new Auth($updater, $password); // Check if already a step is in process @@ -1646,9 +1646,13 @@ public function logVersion() { } #login input { - padding: 5px; border-radius: 3px; border: 1px solid rgba(240,240,240,.9); + margin: 3px 3px 3px 0; + padding: 9px 6px; + font-size: 13px; + outline: none; + cursor: text; } .section { @@ -1754,13 +1758,13 @@ public function logVersion() { php -r '$password = trim(shell_exec("openssl rand -base64 48"));if(strlen($password) === 64) {$hash = password_hash($password, PASSWORD_DEFAULT) . "\n"; echo "Insert as \"updater.secret\": ".$hash; echo "The plaintext value is: ".$password."\n";}else{echo "Could not execute OpenSSL.\n";};'
-
- isAuthenticated()): ?> + isAuthenticated()): ?>

Invalid password

@@ -2127,26 +2131,6 @@ function confirmExit() { } } - -