Tuesday, March 21, 2017

Custom login-form in Laravel 5

I tried to make a custom login form in Laravel 5.

            <div class="form">
                    <form action="/login" method="post" class="form-horizontal">
                    
                  <div class="form-group">
                    <label for="email">Email address:</label>
                    <input type="email" class="form-control" id="email">
                  </div>
                  <div class="form-group">
                    <label for="pwd">Password:</label>
                    <input type="password" class="form-control" id="pwd">
                  </div><br>
                  <button type="submit" class="btn btn-default">Login</button>
                </form> 

I make it go to /login with the same fieldnames as the official login-page, but when I submit it, it just refreshes the page or something...

How to make a custom login-form on a custom page?



via O'Niel

Advertisement