Skip to content

Commit

Permalink
Fix Password Not Confirming
Browse files Browse the repository at this point in the history
  • Loading branch information
yldbouk committed Oct 29, 2019
1 parent bacc639 commit 22a6fc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/acc/scripts/changepwd.script.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -100,4 +100,4 @@
mysqli_close($conn);
} else {
header("Location: ../");
}
}

0 comments on commit 22a6fc4

Please sign in to comment.