Added 405 answer to SSO attempts

This commit is contained in:
Simon Beginn
2020-11-28 21:53:18 +01:00
parent db9f0dacb5
commit 0a861fcd5e

View File

@@ -111,6 +111,9 @@ if(isset($_GET['path'])) {
$result['plans']['enterprise']['amount'] = 42;
$result['plans']['enterprise_plus'] = array();
$result['plans']['enterprise_plus']['amount'] = 42;
} else if(preg_match('/auth\/.*/', $_GET['path'])) {
$result = array('error' => 'Sorry, but SSO is currently not supported.');
$code = 401; //Let Pritunl fail, without 500 codes (it will show 405)
}
}