How to use password_hash Register And Login
问题 I'm trying to figure out how to use password_hash on register and login systems. Currently I'm using password_hash like this to register my users. $pass = $_POST['Pass']; $hashed_password = password_hash($pass, PASSWORD_DEFAULT); $stmt = $conn->prepare("INSERT INTO `usuario`(`Nick`, `Nombre_u`, `Apellidos`, `e-mail`, `Password`, `Domicilio`, `Colonia`, `Codigo_Postal`, `Cuidad`, `Estado`, `Telefono`) VALUES (?, ?, ?, ?, ?, ? , ?, ?, ?, ?, ?)"); $stmt->bind_param( "sssssssisss", $nick, $nombre