Skip to content

Commit

Permalink
Add a default value for password_test_user and password_test_pass
Browse files Browse the repository at this point in the history
for configuration page
  • Loading branch information
armanddidierjean committed Nov 22, 2023
1 parent d6710f1 commit 7d64964
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
'manage_groups' => $_POST['manage_groups'],
Expand Down
2 changes: 2 additions & 0 deletions maintain.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => '',
Expand Down

0 comments on commit 7d64964

Please sign in to comment.