kmanjari / hrms

Human Resource Management System automation using Laravel 5.2
171 stars 122 forks source link

Login with user HR Manager does not work after seeding #33

Closed nekromoff closed 6 years ago

nekromoff commented 7 years ago

using: email@gmail.com and: 123456 for password

Login form is submitted, but user is returned to the login screen without any error.

noadek commented 7 years ago

Try using a virtual host. Since laravel uses a public folder called 'public' the login form submits to itself which is a your /folder/public. The .htacess file will treat this url as a directory and just return the index page again.

Hence the rule

# Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d

will take effect.

Either remove the rule or setup a virtual host. Although I would suggest using the virtual host.

Hope this helps!

khanof89 commented 7 years ago

I have added the changes in the login form in case there is some kind of errors it will show you on the page itself. As noadek said use a virtual host for laravel projects