Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Password verify
- This can be used in conjunction with GET URL and break apart but not required
- require_once("connection/connection.php");
- $sql = "SELECT * FROM pwd WHERE email = :email LIMIT 1";
- $stmt = $pdo->prepare($sql);
- $user = $stmt->execute([':email' => $linkEmail]);
- $user = $stmt->fetch(PDO::FETCH_ASSOC);
- if (!$user) {
- $errors[] = "No Results";
- }else{
- //The query was executed successfully
- $db_selector = e($user['selector']);
- if (!password_verify($selector, $db_selector)) {
- $errors[] = "Error with selector<br>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement