From: Alan Knowles Date: Fri, 7 Dec 2018 02:45:55 +0000 (+0800) Subject: DataObjects/Core_person.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=1f51051640ad5f6ec6a74884483abc4711e7c217 DataObjects/Core_person.php --- diff --git a/DataObjects/Core_person.php b/DataObjects/Core_person.php index 006751a5..9a57da0e 100644 --- a/DataObjects/Core_person.php +++ b/DataObjects/Core_person.php @@ -327,8 +327,7 @@ class Pman_Core_DataObjects_Core_person extends DB_DataObject } - if (empty($_SERVER['PATH_INFO']) || $_SERVER['PATH_INFO'] == '/Login' || $_SERVER['PATH_INFO'] == '/PasswordReset' - ) { + if (empty($_SERVER['PATH_INFO']) || preg_match('#^(/Login$|/PasswordReset)#/', $_SERVER['PATH_INFO']) { $auto_auth_allow = false; } //var_dump($auto_auth_allow);