From 9d8261cf6acf1a824ea32be9a0a20b1688592530 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 16 Aug 2021 15:39:13 +0800 Subject: [PATCH] Changed Pman.phpPman/Login.php --- Pman.php | 3 ++- Pman/Login.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Pman.php b/Pman.php index 9f9c783..b048ef5 100644 --- a/Pman.php +++ b/Pman.php @@ -560,7 +560,8 @@ class Pman extends HTML_FlexyFramework_Page echo $this->jsencode(array( 'success'=> false, - 'data'=> array(), + 'data'=> array(), + 'code' => $type, 'errorMsg' => $str, 'message' => $str, // compate with exeption / loadexception. 'errors' => $errors ? $errors : true, // used by forms to flag errors. diff --git a/Pman/Login.php b/Pman/Login.php index df0aafd..1ad498d 100644 --- a/Pman/Login.php +++ b/Pman/Login.php @@ -340,7 +340,7 @@ class Pman_Login extends Pman } if(!empty($u->oath_key) && empty($_REQUEST['oath_password'])){ - $this->jerror('LOGIN-BAD','Your account requires Two-Factor Authentication'); + $this->jerror('LOGIN-2FA','Your account requires Two-Factor Authentication'); } // check if config allows non-owner passwords. -- 2.39.2