From 3dd46d77cb8d582142304587abf4aec0f7375b32 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 18 Apr 2010 19:04:36 +0200 Subject: add HTTP Basic Auth password support Signed-off-by: Florian Pritz --- system/application/models/file_mod.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/application/models') 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'; } -- cgit v1.2.3-24-g4f1b