Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus-user
This commit is contained in:
commit
142509e9f6
@ -20,7 +20,7 @@ class HeaderAuthenticationMiddleware implements MiddlewareInterface
|
|||||||
protected Authenticate $authorize,
|
protected Authenticate $authorize,
|
||||||
protected UserInterface $entity,
|
protected UserInterface $entity,
|
||||||
protected \Closure $loginFailedResponse,
|
protected \Closure $loginFailedResponse,
|
||||||
HeaderAuthentication $authenticator = null,
|
? HeaderAuthentication $authenticator = null,
|
||||||
) {
|
) {
|
||||||
$this->authenticator = $authenticator ?: new HeaderAuthentication($authorize);
|
$this->authenticator = $authenticator ?: new HeaderAuthentication($authorize);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class PostRequestAuthenticationMiddleware implements MiddlewareInterface
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
protected UserInterface $entity,
|
protected UserInterface $entity,
|
||||||
protected \Closure $loginFailedResponse,
|
protected \Closure $loginFailedResponse,
|
||||||
PostRequestAuthentication $authenticator = null,
|
? PostRequestAuthentication $authenticator = null,
|
||||||
) {
|
) {
|
||||||
$this->authenticator = $authenticator ?: new PostRequestAuthentication(new Authenticate($entity));
|
$this->authenticator = $authenticator ?: new PostRequestAuthentication(new Authenticate($entity));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user