mercredi 5 juin 2019

Logging in to Laravel - additional form in front view

I am a beginner in Laravel. I have a question for the Laravel login system (uses 5.8).

I added standard login system to my project using:

php artisan make:auth

I now have pod domena.pl/register and domena.pl/register I have a login registration system. This works fine for me.

I would like to add an additional login form on the main page (in domana.pl).

I made this form on the home page:

<form method="POST" action="http://domana.pl/login" id="registration_form">
 <input type="hidden" name="_token" value="RLRmSgFz3TrhXp7exjAzCDABf3OCErbf5DvxKCNI">
  <input type="email" name="email" required>
  <input type="password" name="password" required>
  <button type="submit" >Login</button>
</form>

However, after sending this form, there is no login and the page returns to the main page. Does anyone know how to fix it? :)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire