Skip to content

Commit 1689c2e

Browse files
authored
Merge pull request hestiacp#2167 from jaapmarcus/fix/disable-reset-endpoint
Disable /reset/ endpoint when POLICY_SYSTEM_PASSWORD_RESET = no
2 parents 376f740 + c02b82a commit 1689c2e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ All notable changes to this project will be documented in this file.
77

88
### Bugfixes
99

10+
- Disable /reset/ endpoint when POLICY_SYSTEM_PASSWORD_RESET = no
11+
1012
## [1.4.17] - Service release
1113

1214
### Bugfixes

web/reset/index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
// Main include
1212
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
1313

14+
if ($_SESSION['POLICY_SYSTEM_PASSWORD_RESET'] == 'no') {
15+
header('Location: /login/');
16+
exit();
17+
}
18+
1419
if ((!empty($_POST['user'])) && (empty($_POST['code']))) {
1520
// Check token
1621
verify_csrf($_POST);

0 commit comments

Comments
 (0)