OpenXE/classes/Modules/TOTPLogin/Exception/TOTPDisabledForUserException.php

17 lines
408 B
PHP
Raw Normal View History

2021-05-21 08:49:41 +02:00
<?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}");
}
}