Created
March 9, 2017 17:46
-
-
Save adelarcubs/9ab6e0c72dd3bafacee0c84c9563b35e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$userEmail = '[email protected]'; | |
$userPassword = '123456'; | |
// Using Doctrine for example | |
$user = $repository->findByEmail($userEmail); | |
if(password_verify($userPassword, $user->getPassword())){ | |
// DO LOGIN | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment