I am beginner in Laravel. I make my project in Laravel 5.8
I use in my project standard Auth login system from Laravel.
I have login in my domain.com/login (original login form). I need add second login form on domain.com/index2
I make this code:
<form method="POST" action="http://domaina.test/login" id="registration_form">
<input type="hidden" name="_token" value="RLRmSgFz3TrhXp7exjAzCDABf3OCErbf5DvxKCNI">
<div class="form-group">
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4 padding0 paddingLogin">
<label for="firstname" class="sr-only"></label>
<input id="firstname" class="form-control input-group-lg reg_name loginInputFormat" type="email" name="email" title="Login" placeholder="Login" required>
</div>
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4 padding0 paddingLogin">
<label for="lastname" class="sr-only"></label>
<input id="lastname" class="form-control input-group-lg reg_name loginInputFormat" type="password" name="password" title="Password" placeholder="Hasło" required>
</div>
<div class="col-xs-12 col-sm-3 col-md-4 col-lg-4 padding0 form-group_pop center ">
<button type="submit" class="btn btn-danger zaloguj_button ">Zaloguj</button>
</div>
</div>
</form>
But it's not working :( After submit this form I have redirect to main page.
How can I repair it?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire