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 ISetPasswordBackend {
|
2018-03-22 05:53:29 -04:00
|
|
|
/**
|
|
|
|
|
* @since 14.0.0
|
2018-03-22 10:54:55 -04:00
|
|
|
*
|
|
|
|
|
* @param string $uid The username
|
|
|
|
|
* @param string $password The new password
|
|
|
|
|
* @return bool
|
2018-03-22 05:53:29 -04:00
|
|
|
*/
|
2018-03-22 03:59:10 -04:00
|
|
|
public function setPassword(string $uid, string $password): bool;
|
|
|
|
|
}
|