LSauthMethod_HTTP : fix constructor to load config before handling it

This commit is contained in:
Benjamin Renard 2019-03-27 18:28:44 +01:00
parent 87729124f3
commit 5fa1e578c5

View file

@ -30,10 +30,11 @@ LSsession :: loadLSclass('LSauthMethod_basic');
class LSauthMethod_HTTP extends LSauthMethod_basic { class LSauthMethod_HTTP extends LSauthMethod_basic {
public function __construct() { public function __construct() {
parent :: __construct();
LSauth :: disableLoginForm(); LSauth :: disableLoginForm();
if (!defined('LSAUTHMETHOD_HTTP_LOGOUT_REMOTE_URL')) if (!defined('LSAUTHMETHOD_HTTP_LOGOUT_REMOTE_URL'))
LSauth :: disableLogoutBtn(); LSauth :: disableLogoutBtn();
return parent :: __construct(); return True;
} }
/** /**