You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
675 B
PHP
32 lines
675 B
PHP
<?php
|
|
|
|
namespace Pablo\Ae3auth\app\Services\Contracts;
|
|
|
|
interface PasswordHistoryServiceContract
|
|
{
|
|
/**
|
|
* @param int|string $userId
|
|
* @param string $password
|
|
* @return bool
|
|
*/
|
|
public function inHistory(int|string $userId, string $password): bool;
|
|
|
|
/**
|
|
* @param $user
|
|
* @return void
|
|
*/
|
|
public function logPassword($user): void;
|
|
|
|
/**
|
|
* @param int|string $userId
|
|
* @param string $password
|
|
* @return bool
|
|
*/
|
|
public function logNewPassword(int|string $userId, string $password): void;
|
|
|
|
/**
|
|
* @param $userId
|
|
* @return void
|
|
*/
|
|
public function removeOldestPassword($userId): void;
|
|
} |