Better error reporting
[Pman.Admin] / Signup.php
index 4edf7ac..d06a711 100644 (file)
@@ -8,7 +8,7 @@ class Pman_Admin_Signup extends Pman
         parent::getAuth(); // load company!
         $au = $this->getAuthUser();
         if (!$au) {
-            $this->jerr("Not authenticated", array('authFailure' => true));
+            $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true));
         }
         $this->authUser = $au;
         if ($au->company()->comptype != 'OWNER') {