DarkGhostHunter / Laraguard

"On-premises 2FA Authentication for all your users out-of-the-box
MIT License
266 stars 24 forks source link

notice not working well #22

Closed FleiTec closed 4 years ago

FleiTec commented 4 years ago

Hi. When i do all like installation guide in readme. I got an error:

Facade\Ignition\Exceptions\ViewException Undefined variable: url (View: /var/www/html/beta9/resources/views/vendor/laraguard/notice.blade.php) http://domain.com/2fa-required Hide solutions $url is undefined Make the variable optional in the blade template. Replace {{ $url }} with {{ $url ?? '' }}

Any ideas?

Thanks

DarkGhostHunter commented 4 years ago

Ah, the Middleware redirects to the view, but the view doesn't gets the $url. I'll fix it by making it optional, since the idea is to have a controller behind to handle the view and include the URL variable to where the user can enable 2FA.