Hotfix: Adding a Back Button to Boboko's Login Form
This commit is contained in:
@@ -46,6 +46,10 @@
|
|||||||
<x-filament::button type="submit" class="w-full">
|
<x-filament::button type="submit" class="w-full">
|
||||||
Sign in
|
Sign in
|
||||||
</x-filament::button>
|
</x-filament::button>
|
||||||
|
|
||||||
|
<x-filament::link wire:click="back" tag="button" type="button" class="mx-auto">
|
||||||
|
← Back
|
||||||
|
</x-filament::link>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@@ -35,6 +35,12 @@ class Login extends SimplePage
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function back(): void
|
||||||
|
{
|
||||||
|
$this->otpSent = false;
|
||||||
|
$this->otp = '';
|
||||||
|
}
|
||||||
|
|
||||||
public function requestOtp(): void
|
public function requestOtp(): void
|
||||||
{
|
{
|
||||||
$this->validate(['email' => 'required|email']);
|
$this->validate(['email' => 'required|email']);
|
||||||
|
|||||||
Reference in New Issue
Block a user