From: Alan Date: Fri, 8 Sep 2023 05:15:34 +0000 (+0800) Subject: Better error reporting X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=b8a95ba7fdab398c943998f36fe1ba4e8004203b Better error reporting --- diff --git a/GroupRights.php b/GroupRights.php index 6275f2c..0dbd455 100644 --- a/GroupRights.php +++ b/GroupRights.php @@ -12,7 +12,7 @@ class Pman_Admin_GroupRights 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)); } if ($au->company()->comptype !='OWNER') { diff --git a/Signup.php b/Signup.php index 4edf7ac..d06a711 100644 --- a/Signup.php +++ b/Signup.php @@ -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') {