mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Fix for #2439
This commit is contained in:
@@ -39,14 +39,6 @@ interface UserRepositoryInterface
|
||||
*/
|
||||
public function all(): Collection;
|
||||
|
||||
/**
|
||||
* Set MFA code.
|
||||
*
|
||||
* @param User $user
|
||||
* @param string|null $code
|
||||
*/
|
||||
public function setMFACode(User $user, ?string $code): void;
|
||||
|
||||
/**
|
||||
* Gives a user a role.
|
||||
*
|
||||
@@ -64,9 +56,9 @@ interface UserRepositoryInterface
|
||||
* @param User $user
|
||||
* @param string $newEmail
|
||||
*
|
||||
* @return bool
|
||||
* @see updateEmail
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function changeEmail(User $user, string $newEmail): bool;
|
||||
|
||||
@@ -162,6 +154,21 @@ interface UserRepositoryInterface
|
||||
*/
|
||||
public function hasRole(User $user, string $role): bool;
|
||||
|
||||
/**
|
||||
* Remove any role the user has.
|
||||
*
|
||||
* @param User $user
|
||||
*/
|
||||
public function removeRole(User $user): void;
|
||||
|
||||
/**
|
||||
* Set MFA code.
|
||||
*
|
||||
* @param User $user
|
||||
* @param string|null $code
|
||||
*/
|
||||
public function setMFACode(User $user, ?string $code): void;
|
||||
|
||||
/**
|
||||
* @param array $data
|
||||
*
|
||||
@@ -191,9 +198,9 @@ interface UserRepositoryInterface
|
||||
* @param User $user
|
||||
* @param string $newEmail
|
||||
*
|
||||
* @return bool
|
||||
* @see changeEmail
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function updateEmail(User $user, string $newEmail): bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user