diff --git a/admin.php b/admin.php index e7fe765..7c62593 100644 --- a/admin.php +++ b/admin.php @@ -77,6 +77,11 @@ 'issuer_url' => $_POST['issuer_url'], 'client_id' => $_POST['client_id'], 'client_secret' => $_POST['client_secret'], + // We want to save password_test_user and password_test_pass + // to prevent PHP from raising an error + // We reset the two values as they may contains sensitive data + 'password_test_user' => '', + 'password_test_pass' => '', 'scope' => $_POST['scope'], 'preferred_username' => $_POST['preferred_username'], 'proxy' => $_POST['proxy'], diff --git a/maintain.class.php b/maintain.class.php index 7a017ca..4fcb299 100644 --- a/maintain.class.php +++ b/maintain.class.php @@ -23,6 +23,8 @@ class OpenIdConnect_maintain extends PluginMaintain 'issuer_url' => '', 'client_id' => '', 'client_secret' => '', + 'password_test_user' => '', + 'password_test_pass' => '', 'scope' => 'openid profile email', 'preferred_username' => '', 'proxy' => '',