ZF-Commons / ZfcUser

A generic user registration and authentication module for ZF2. Supports Zend\Db and Doctrine2. (Formerly EdpUser)
BSD 3-Clause "New" or "Revised" License
497 stars 343 forks source link

Unable to use ZfcUder from console due to Authentication\Adapter\Db using getPost on $request #541

Open DannyvdSluijs opened 9 years ago

DannyvdSluijs commented 9 years ago

The ZfcUser\Authentication\Adapter\Db uses the request passed into the AuthenticationEvent. Which is defined as an Zend\Stdlib\RequestInterface type. However this interface doesn't support the method getPost() called on line 62 and 63 of the ZfcUser\Authentication\Adapter\Db. Allowed methods should are:

Not sure how this should be altered.

See https://github.com/ZF-Commons/ZfcUser/blob/master/src/ZfcUser/Authentication/Adapter/Db.php#L62

adamlundrigan commented 9 years ago

Related to #513

In 2.x we should probably not push the request through the event. Make extracting the required data from user input the responsibility of the code trigger the authentication request.