OpenXE/classes/Modules/TOTPLogin/Exception/TOTPDisabledForUserException.php
2021-05-21 08:49:41 +02:00

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}");
}
}