Try-catch not working
Closed this issue · 1 comments
Thijmen commented
Hi,
Trying to re-code my old project into L4, still using your library :)
I have this code;
try
{
Auth::attempt(array('identifier' => 'Todd', 'password' => 'password'));
}
catch (UserNotFoundException $e)
{
echo 'User has been deleted and can not log in.';
}
When I access this POST, I get a debug-trace. I also see this;
// Failed to find a user?
if ($query->count() == 0) {
throw new UserNotFoundException('User can not be found');
}
Am I doing something wrong?
Thijmen commented
Forgot this one, forgot to use Toddish\Verify\UserNotFoundException