Skip to content

Commit cb2b4ac

Browse files
author
Sebastian Michaelsen
committed
HTTP Auth in CGI mode
1 parent d3ac22e commit cb2b4ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

classes/Authentication/BaseHttpAuthentication.php

+2
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public function __construct() {
2626
$this->name = $vals[0];
2727
$this->password = $vals[1];
2828
}
29+
} elseif (isset($_SERVER['HTTP_AUTHORIZATION'])) {
30+
list($this->name, $this->password) = explode(':', base64_decode(substr($_SERVER['HTTP_AUTHORIZATION'], 6)));
2931
}
3032
}
3133

0 commit comments

Comments
 (0)