laravel-enso / enso

Laravel Vue SPA, Bulma themed. For demo login use `admin@laravel-enso.com` & `password` -
https://www.laravel-enso.com
MIT License
1.08k stars 277 forks source link

The new installation is not working #335

Closed heyner29 closed 3 years ago

heyner29 commented 3 years ago

This is a bug.

Prerequisites

Description

I just did a fresh installation of enso locally and it doesn't allow me to login. In the front it does not present anything but in developer tools it gives the following error.

image

Steps to Reproduce

To reproduce the error, just do the readme installation steps, and create a new installation locally.

raftx24 commented 3 years ago

Hi @heyner29 You need to set your domain in .env for SANCTUM_STATEFUL_DOMAINS. for example, if your domain is enso.test you should have this in your .env. SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,127.0.0.1:8000,localhost:8080,::1,enso.test

Guirande commented 3 years ago

I did the installation according to the documentation steps, but I get an error "index not found - Are you sure that the preview exists and is a .blade.php file?"

raftx24 commented 3 years ago

@Guirande I guess you didn't open the web client URL. please do it again and this time open localhost:8080 instead

Guirande commented 3 years ago

@heyner29

It had the same error, it seems that the variable device_name is null, in the file vendor/laravel-enso/core/src/Http/Controllers/Auth/LoginController.php in the validateLogin method

enso error

For my solution, I removed the required field, according to the images below

enso error 2

enso error 3

This solution is temporary, for application security criteria I would like developers to pay more attention to this problem

aocneanu commented 3 years ago

@heyner29 can this be closed?