From b8a95ba7fdab398c943998f36fe1ba4e8004203b Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 8 Sep 2023 13:15:34 +0800 Subject: [PATCH] Better error reporting --- GroupRights.php | 2 +- Signup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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') { -- 2.39.2