first(); if (! $user) { return null; } if (md5($password) === $user->password) { return new User($user->getAuthIdentifier()); } return null; } }