diff --git a/htdocs/acc/scripts/changepwd.script.php b/htdocs/acc/scripts/changepwd.script.php index 2b8ad6e9..67b3bc66 100644 --- a/htdocs/acc/scripts/changepwd.script.php +++ b/htdocs/acc/scripts/changepwd.script.php @@ -9,10 +9,10 @@ $userID = $_SESSION['userid']; if (empty($password) || empty($confirmPassword)) { - header("Location: ../login/changepwd/index.php?result=incomplete"); + header("Location: ../changepwd/index.php?result=incomplete"); exit(); } - elseif(!$password == $confirmPassword) { + elseif($password !== $confirmPassword) { header("Location: ../changepwd/index.php?result=pwd"); exit(); @@ -100,4 +100,4 @@ mysqli_close($conn); } else { header("Location: ../"); -} \ No newline at end of file +}