mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 12:37:14 +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}");
|
|
}
|
|
}
|