mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Move HTTP auth to PHP
This commit is contained in:
parent
e290758a9a
commit
30442c0c62
11 changed files with 110 additions and 86 deletions
|
@ -37,6 +37,12 @@ if($GLOBALS['User'] === null){
|
|||
// log them in while we're here.
|
||||
|
||||
$session = new Session();
|
||||
$session->Create($httpBasicAuthLogin);
|
||||
try{
|
||||
$session->Create($httpBasicAuthLogin);
|
||||
$GLOBALS['User'] = $session->User;
|
||||
}
|
||||
catch(Exception $ex){
|
||||
// Do nothing
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue