mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Added support for http_auth
This commit is contained in:
parent
c1e24b0461
commit
df6afaf090
3 changed files with 32 additions and 9 deletions
|
@ -81,6 +81,8 @@ if (Session::isLogged()) {
|
|||
$poche->action($action, $url, $id);
|
||||
$tpl_file = Tools::getTplFile($view);
|
||||
$tpl_vars = array_merge($tpl_vars, $poche->displayView($view, $id));
|
||||
} elseif(isset($_SERVER['PHP_AUTH_USER'])) {
|
||||
$poche->login($referer);
|
||||
} else {
|
||||
$tpl_file = Tools::getTplFile('login');
|
||||
}
|
||||
|
@ -90,4 +92,4 @@ $messages = $poche->messages->display('all', FALSE);
|
|||
$tpl_vars = array_merge($tpl_vars, array('messages' => $messages));
|
||||
|
||||
# display poche
|
||||
echo $poche->tpl->render($tpl_file, $tpl_vars);
|
||||
echo $poche->tpl->render($tpl_file, $tpl_vars);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue