Skip to content

Commit 28605e7

Browse files
authored
Fix(Config): fix password not saved (#153)
1 parent 1042557 commit 28605e7

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111

1212
- Fix config page error on display
13+
- Fix `password` value not saved
1314

1415
## [2.5.0] - 2025-10-01
1516

front/config.form.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,7 @@
3838
$config = new PluginSccmConfig();
3939

4040
if (isset($_POST["update"])) {
41-
if (array_key_exists('sccmdb_password', $_POST)) {
42-
// Password must not be altered.
43-
$_POST['sccmdb_password'] = $_UPOST['sccmdb_password']; // @phpstan-ignore-line Variable $_UPOST might not be defined
44-
}
45-
4641
$config->update($_POST);
47-
4842
$sccm_db = new PluginSccmSccmdb();
4943
if ($sccm_db->connect()) {
5044
Session::addMessageAfterRedirect("Connexion réussie !.", false, INFO, false);

0 commit comments

Comments
 (0)