I hashed a password through
$hashedpassword = password_hash($Password, PASSWORD_DEFAULT);
This stores the password as a hashed value into a database. But when I try to login in through
$Password=$_POST['Password'];
$hashedpassword = password_hash($Password, PASSWORD_DEFAULT);
if(password_verify($Password, $hashedpassword))
It will always tell me that the password is correct, regardless on whether it is or not. Is there a way around this, so I can hash the password but login with the entered (non-hashed) password.