blob: 4602bba422569a7c92682074cf6ac9c487cb2746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
class CoreLogonIcingaweb2 extends CoreLogonModule
{
public function check($printErr = true)
{
global $AUTH, $CORE;
if ($AUTH->isAuthenticated()) {
$AUTH->setTrustUsername(true);
$AUTH->setLogoutPossible(false);
return true;
} else {
// ??? ...
die('not authenticated');
// ...
header('Location: /icingaweb');
exit;
// ... ???
return false;
}
}
}
|