orchidsoftware / fortify

Orchid template optimized for Fortify, an authentication package for Laravel, combining strengths for a robust and secure application environment.
https://orchid.software
MIT License
26 stars 6 forks source link

Invalid login message is not displayed when fortify is active #3

Closed protocyber closed 3 years ago

protocyber commented 3 years ago

Describe the bug After I activate Fortify, everything is working fine except when I tried to enter invalid credentials, validation exception is not showing.

To Reproduce Steps to reproduce the behavior:

Install orchidsoftware/fortify Login via fortify route /login. Not via orchid's route /admin/login Enter invalid credentials Expected behavior Validation should return invalid credentials message.

Screenshots Not applicable

Desktop (please complete the following information): OS: Windows 10 Browser Google Chrome Version 91.0.4472.77 (Official Build) (64-bit)

Server (please complete the following information): Platfrom Version: 9.21.0 Laravel Version: 8.34.0 PHP Version: 7.3 Database: MySql Database Version: 5.7.24 - MySQL Community Server (GPL)

protocyber commented 3 years ago

I think I've found the problem.

By default, fortify login route is /login which does not contain orchid prefix.

The problem is this line in app.blade.php <meta name="turbolinks-root" content="{{ Dashboard::prefix() }}">

After user click login, if credential is invalid, turbolinks makes two requests causing validation exception not displayed.

protocyber commented 3 years ago

It has been answered by @tabuna here: https://github.com/orchidsoftware/platform/issues/1762