summaryrefslogtreecommitdiffstats
path: root/system/application/models
diff options
context:
space:
mode:
Diffstat (limited to 'system/application/models')
-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';
}