zendframework/zend-expressive-authentication

Wrong config parameter name in the \Zend\Expressive\Authentication\UserRepositoryPdoDatabaseFactory factory

nuxwin opened this issue · 1 comments

@weierophinney

Good morning,

There is a wrong configuration parameter name in the \Zend\Expressive\Authentication\UserRepositoryPdoDatabaseFactory factory:

...
        if (null === $pdo) {
            throw new Exception\InvalidConfigException(
                'PDO values are missing in user_register config'
            );
        }
...

should be

...
        if (null === $pdo) {
            throw new Exception\InvalidConfigException(
                'PDO values are missing in authentication config'
            );
        }
...

Thank you.

Would you be willing to provide a pull request to resolve this, please?