summaryrefslogtreecommitdiffstats
path: root/system/application/models/file_mod.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xssn.at>2010-04-18 19:04:36 +0200
committerFlorian Pritz <bluewind@xssn.at>2010-04-18 19:09:24 +0200
commit3dd46d77cb8d582142304587abf4aec0f7375b32 (patch)
treedaf1be9a49b8420b0a0a81ae88b530b06151ab2a /system/application/models/file_mod.php
parent33184d4a01f4b95fd7f319d11cd4b71a765885b9 (diff)
add HTTP Basic Auth password support
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'system/application/models/file_mod.php')
-rw-r--r--system/application/models/file_mod.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 41959a5d2..e8e9919ce 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -80,6 +80,8 @@ class File_mod extends Model {
$password = $this->input->post('password');
if ($password !== false) {
return $this->hash_password($password);
+ } elseif (isset($_SERVER['PHP_AUTH_PW']) && $_SERVER['PHP_AUTH_PW'] != '') {
+ return $this->hash_password($_SERVER['PHP_AUTH_PW']);
}
return 'NULL';
}