MTrackWeb/Login.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 14:10:42 +0000 (22:10 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 14:10:42 +0000 (22:10 +0800)
MTrackWeb/Login.php

index a888627..9c0d445 100644 (file)
@@ -100,13 +100,13 @@ class MTrackWeb_Login extends MTrackWeb
         //$u->company_id = $this->company->id;
         
         if (empty($_REQUEST['username'])) { //|| (strpos($_REQUEST['username'], '@') < 1)) {
-            return $this->errmsg('bad_1');
+             $this->jerr('Missing username');
             
         }
          
         $u->email = $_REQUEST['username'];
         if ($u->count() > 1 || !$u->find(true)) {
-            return $this->errmsg('bad_2');
+           $this->jerr('Bad Username / Password combination');
             
         }
         
@@ -133,7 +133,7 @@ class MTrackWeb_Login extends MTrackWeb
         }
         
          
-        return $this->errmsg('bad_3'); // - " . htmlspecialchars(print_r($_POST,true))."'");
+        $this->jerr('Bad Username / Password combination'); // - " . htmlspecialchars(print_r($_POST,true))."'");
         
     }