2018-03-22 03:59:10 -04:00
|
|
|
<?php
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-22 03:59:10 -04:00
|
|
|
declare(strict_types=1);
|
2019-12-03 13:57:53 -05:00
|
|
|
|
2018-03-22 03:59:10 -04:00
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2018-03-22 03:59:10 -04:00
|
|
|
*/
|
|
|
|
|
namespace OCP\User\Backend;
|
|
|
|
|
|
2018-03-22 05:53:29 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
|
|
|
|
*/
|
2018-03-22 03:59:10 -04:00
|
|
|
interface ICheckPasswordBackend {
|
2018-03-22 05:53:29 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
2018-03-22 10:54:55 -04:00
|
|
|
*
|
2020-08-19 11:54:00 -04:00
|
|
|
* @param string $loginName The loginname
|
2018-03-22 10:54:55 -04:00
|
|
|
* @param string $password The password
|
2022-05-13 06:59:51 -04:00
|
|
|
* @return string|false The uid on success false on failure
|
2018-03-22 05:53:29 -04:00
|
|
|
*/
|
2018-03-22 07:18:54 -04:00
|
|
|
public function checkPassword(string $loginName, string $password);
|
2018-03-22 03:59:10 -04:00
|
|
|
}
|