zendframework / zend-expressive-authentication

Authentication middleware for Expressive and PSR-7 applications
BSD 3-Clause "New" or "Revised" License
21 stars 15 forks source link

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

Closed nuxwin closed 5 years ago

nuxwin commented 5 years ago

@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.

weierophinney commented 5 years ago

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