From 346caed594c7de29017a96b7d76f35be2539f4e3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 15 Jul 2013 12:40:42 +0200 Subject: user/test_login: Allow clients to test login credentials Signed-off-by: Florian Pritz --- application/models/muser.php | 1 + 1 file changed, 1 insertion(+) (limited to 'application/models/muser.php') 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; } -- cgit v1.2.3-24-g4f1b