. */ declare(strict_types=1); namespace FireflyIII\Http\Requests; /** * @codeCoverageIgnore * Class TokenFormRequest. */ class TokenFormRequest extends Request { /** * @return bool */ public function authorize() { // Only allow logged in users return auth()->check(); } /** * @return array */ public function rules() { // fixed return [ 'code' => 'required|2faCode', ]; } }