diff --git a/test/functional/LoginShellSetTest.php b/test/functional/LoginShellSetTest.php index 79dc2202..86ffbaea 100644 --- a/test/functional/LoginShellSetTest.php +++ b/test/functional/LoginShellSetTest.php @@ -39,7 +39,7 @@ public function testSetLoginShellCustom(string $shell): void // FIXME shell is not validated post( __DIR__ . "/../../webroot/panel/account.php", - ["form_type" => "loginshell", "shellSelect" => "custom", "shell" => $shell] + ["form_type" => "loginshell", "shellSelect" => "Custom", "shell" => $shell] ); $this->assertEquals($shell, $USER->getLoginShell()); } diff --git a/webroot/panel/account.php b/webroot/panel/account.php index 8bd45171..6628de44 100644 --- a/webroot/panel/account.php +++ b/webroot/panel/account.php @@ -69,7 +69,7 @@ $USER->setSSHKeys($keys, $OPERATOR); // Update user keys break; case "loginshell": - if ($_POST["shellSelect"] == "custom") { + if ($_POST["shellSelect"] == "Custom") { $USER->setLoginShell($_POST["shell"], $OPERATOR); } else { $USER->setLoginShell($_POST["shellSelect"], $OPERATOR); @@ -186,49 +186,28 @@