aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/index.php b/index.php
index 145da772..fb251298 100644
--- a/index.php
+++ b/index.php
@@ -100,6 +100,15 @@ if (Session::isLogged()) {
100 $tpl_file = Tools::getTplFile('login'); 100 $tpl_file = Tools::getTplFile('login');
101 $tpl_vars['http_auth'] = 1; 101 $tpl_vars['http_auth'] = 1;
102 } 102 }
103} elseif(isset($_SERVER['REMOTE_USER'])) {
104 if($poche->store->userExists($_SERVER['REMOTE_USER'])) {
105 $poche->login($referer);
106 } else {
107 $poche->messages->add('e', _('login failed: user doesn\'t exist'));
108 Tools::logm('user doesn\'t exist');
109 $tpl_file = Tools::getTplFile('login');
110 $tpl_vars['http_auth'] = 1;
111 }
103} else { 112} else {
104 $tpl_file = Tools::getTplFile('login'); 113 $tpl_file = Tools::getTplFile('login');
105 $tpl_vars['http_auth'] = 0; 114 $tpl_vars['http_auth'] = 0;