mirror of
https://github.com/nextcloud/server.git
synced 2026-06-29 12:24:50 +02:00
d49df488a1
When implementing this for user_saml, I noticed that we do need to make the return value nullable as otherwise there are no way for this feature to be optional for the admin. Signed-off-by: Carl Schwan <carlschwan@kde.org>
28 lines
602 B
PHP
28 lines
602 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
namespace OCP\User\Backend;
|
|
|
|
/**
|
|
* @since 14.0.0
|
|
*/
|
|
interface ICheckPasswordBackend {
|
|
/**
|
|
* Check if the password is correct without logging in the user
|
|
* returns the user id or false.
|
|
*
|
|
* @param string $loginName The login name
|
|
* @param string $password The password
|
|
* @return string|false The uid on success false on failure
|
|
* @since 14.0.0
|
|
*
|
|
*/
|
|
public function checkPassword(string $loginName, string $password);
|
|
}
|