Closed protocyber closed 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.
Hi @protocyber. I think it's easy to fix this by simply specifying the same prefix configs:
Hi @tabuna. Thank you very much for the respond.
Yes it works by setting prefix in config/fortify.php
But the downside is: The login page must not be rendered in root URL.
The same error will still be happened.
User must always be redirected to /prefix/login
.
Thank you @tabuna for the excellent work.
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:
/login
. Not via orchid's route/admin/login
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)