Files
nextcloud-server-mirror/lib/public/User/Backend/ICheckPasswordBackend.php
Carl Schwan d49df488a1 fix: Make the IProvideUserSecretBackend usable
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>
2026-06-22 14:07:48 -04:00

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);
}