Skip to content

Commit 8db9d14

Browse files
committed
Disable reset endpoint when POLICY_SYSTEM_PASSWORD_RESET = no
1 parent 376f740 commit 8db9d14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)