summaryrefslogtreecommitdiffstats
path: root/application/models
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-07-15 12:40:42 +0200
committerFlorian Pritz <bluewind@xinu.at>2013-07-15 12:40:42 +0200
commit346caed594c7de29017a96b7d76f35be2539f4e3 (patch)
treeda0869cf9c69ea6e56adb891467084e56558038e /application/models
parent672dc5f6d1b9f1c5d2ec8e4208e02986768af85c (diff)
user/test_login: Allow clients to test login credentials
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/models')
-rw-r--r--application/models/muser.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/application/models/muser.php b/application/models/muser.php
index 044e2b845..720b4ee7e 100644
--- a/application/models/muser.php
+++ b/application/models/muser.php
@@ -37,6 +37,7 @@ class Muser extends CI_Model {
if ($username !== false && $password !== false) {
if (!$this->login($username, $password)) {
// TODO: better message
+ $this->output->set_status_header(401);
echo "login failed.\n";
exit;
}