feat: add prefixed route
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -142,4 +142,19 @@ class SecurityService
|
||||
{
|
||||
return $this->tokenService->validateToken($token, $this->securityCode, checkBlacklist: false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authenticate using a plain-text identity + password credential.
|
||||
*
|
||||
* Used by the DAV auth backend which receives credentials from the HTTP
|
||||
* Basic challenge after they have been extracted from the Authorization header.
|
||||
*
|
||||
* @param string $identity Username / e-mail
|
||||
* @param string $password Plain-text password
|
||||
* @return User|null Authenticated user, or null on failure
|
||||
*/
|
||||
public function authenticatePassword(string $identity, string $password): ?User
|
||||
{
|
||||
return $this->authenticateBasic($identity, $password);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user