Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffgreco13 authored and github-actions[bot] committed Apr 30, 2022
1 parent 0864208 commit d216ad1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Http/Livewire/Auth/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@

use DanHarrin\LivewireRateLimiting\Exceptions\TooManyRequestsException;
use Filament\Facades\Filament;
use Filament\Forms\Components\Checkbox;
use Filament\Forms\Components\TextInput;
use Filament\Http\Livewire\Auth\Login as FilamentLogin;
use Filament\Http\Livewire\Concerns\CanNotify;
use Filament\Http\Responses\Auth\Contracts\LoginResponse;
use Illuminate\Contracts\View\View;
use JeffGreco13\FilamentBreezy\FilamentBreezy;
use Illuminate\Support\Arr;
use JeffGreco13\FilamentBreezy\FilamentBreezy;

class Login extends FilamentLogin
{
Expand Down Expand Up @@ -138,16 +137,18 @@ protected function getTwoFactorFormSchema(): array
protected function getFormSchema(): array
{
$parentSchema = parent::getFormSchema();
if ($this->loginColumn !== 'email'){
if ($this->loginColumn !== 'email') {
// Pop off the email field and replace it with loginColumn
unset($parentSchema[0]);
$parentSchema = Arr::prepend($parentSchema,
$parentSchema = Arr::prepend(
$parentSchema,
TextInput::make($this->loginColumn)
->label(__('filament-breezy::default.fields.login'))
->required()
->autocomplete()
);
}

return $parentSchema;
}

Expand Down

0 comments on commit d216ad1

Please sign in to comment.