mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
17 lines
408 B
PHP
17 lines
408 B
PHP
|
<?php
|
||
|
|
||
|
namespace Xentral\Modules\TOTPLogin\Exception;
|
||
|
|
||
|
class TOTPDisabledForUserException extends \RuntimeException implements TOTPLoginExceptionInterface
|
||
|
{
|
||
|
/**
|
||
|
* @param int $userId
|
||
|
*
|
||
|
* @return TOTPDisabledForUserException
|
||
|
*/
|
||
|
public static function fromUserId($userId)
|
||
|
{
|
||
|
return new TOTPDisabledForUserException("TOTP login is disabled for user ID {$userId}");
|
||
|
}
|
||
|
}
|