Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit d3056ba

Browse files
author
NerdOfLinux
authored
Update index.php
1 parent 70e39f4 commit d3056ba

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
$result = mysqli_query($db, $query);
4747
$row = mysqli_fetch_array($result);
4848
$password=$row['password'];
49-
if($user_password == $password && $user_name != ""){
49+
if(password_verify($_POST['passwd'], $password)){
5050
$_SESSION['status'] = "1";
5151
header("Location: /options.php");
5252
die();
53-
}else if($user_password != $password && $user_name != ""){
53+
}else{
5454
echo "An error has occured... Please try again later";
5555
$_SESSION['status'] = "0";
5656
}

0 commit comments

Comments
 (0)