<?php

namespace App\Filament\Pages\Auth;

use Filament\Auth\Pages\Login;
use Illuminate\Validation\ValidationException;

class AdminLogin extends Login
{
    protected function throwFailureValidationException(): never
    {
        throw ValidationException::withMessages(['data.email' => __('auth.portal_denied')]);
    }
}
