Working state but no uploads
This commit is contained in:
@@ -8,14 +8,14 @@ interface PasswordResetRepositoryInterface
|
||||
public function create(int $userId, string $tokenHash, string $expiresAt): void;
|
||||
|
||||
/**
|
||||
* Consomme atomiquement un token non utilisé et non expiré.
|
||||
*
|
||||
* L'implémentation doit effectuer l'opération en une seule étape SQL
|
||||
* afin d'éviter les courses entre lecture et écriture.
|
||||
*
|
||||
* @param string $tokenHash Hash SHA-256 du token de reset
|
||||
* @param string $usedAt Horodatage de consommation au format SQL
|
||||
* @return array<string, mixed>|null Les données du token consommé, ou null si le token est invalide, expiré ou déjà utilisé
|
||||
*/
|
||||
public function consumeActiveToken(string $tokenHash, string $usedAt): ?array;
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function findActiveByHash(string $tokenHash): ?array;
|
||||
|
||||
public function invalidateByUserId(int $userId): void;
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function consumeActiveToken(string $tokenHash, string $usedAt): ?array;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user