mirror of
https://github.com/simonmicro/Pritunl-Fake-API.git
synced 2025-12-06 02:56:59 -05:00
Added 405 answer to SSO attempts
This commit is contained in:
parent
db9f0dacb5
commit
0a861fcd5e
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user