Skip to content

Instantly share code, notes, and snippets.

@adelarcubs
Created March 9, 2017 17:46
Show Gist options
  • Save adelarcubs/9ab6e0c72dd3bafacee0c84c9563b35e to your computer and use it in GitHub Desktop.
Save adelarcubs/9ab6e0c72dd3bafacee0c84c9563b35e to your computer and use it in GitHub Desktop.
<?php
$userEmail = 'test@test.com';
$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