Upload files to "/"
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ $stmt = $conn->prepare("UPDATE admin SET password = ? WHERE username = ?");
|
|||||||
$stmt->bind_param("ss", $passwordBaru, $username);
|
$stmt->bind_param("ss", $passwordBaru, $username);
|
||||||
|
|
||||||
if ($stmt->execute()) {
|
if ($stmt->execute()) {
|
||||||
echo "<script>alert('Password berhasil direset! Silakan login kembali.'); window.location='login.html';</script>";
|
echo "<script>alert('Password berhasil direset! Silakan login kembali.'); window.location='login.php';</script>";
|
||||||
} else {
|
} else {
|
||||||
echo "<script>alert('Gagal reset password: " . $conn->error . "'); history.back();</script>";
|
echo "<script>alert('Gagal reset password: " . $conn->error . "'); history.back();</script>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user