mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: fill out credentials when local, set remember to default true
This commit is contained in:
parent
de097c90dc
commit
276511fc98
2 changed files with 12 additions and 1 deletions
|
|
@ -17,7 +17,7 @@ new #[Layout('components.layouts.auth')] class extends Component {
|
|||
#[Validate('required|string')]
|
||||
public string $password = '';
|
||||
|
||||
public bool $remember = false;
|
||||
public bool $remember = true;
|
||||
|
||||
/**
|
||||
* Handle an incoming authentication request.
|
||||
|
|
@ -70,6 +70,14 @@ new #[Layout('components.layouts.auth')] class extends Component {
|
|||
{
|
||||
return Str::transliterate(Str::lower($this->email) . '|' . request()->ip());
|
||||
}
|
||||
|
||||
public function mount(): void
|
||||
{
|
||||
if (app()->isLocal()) {
|
||||
$this->email = 'admin@example.com';
|
||||
$this->password = 'admin@example.com';
|
||||
}
|
||||
}
|
||||
}; ?>
|
||||
|
||||
<div class="flex flex-col gap-6">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue