Login
The user must autenthicate before using the management dashboard. There are 3 credentials by default that can be used:
- [email protected], with the password secret
- [email protected], with the password secret
- [email protected], with the password secret
For logging in, the user can press the Login button in the top navbar or by adding/login to the url.
The App\Http\Controllers\LoginController
handles the user's authentication.
If you input the wrong data when trying to authenticate, there are validation rules to check if the email and password
are right and if the user has an account (see resources/views/alerts/errors.blade.php
).
@if (!$errors->isEmpty())
<div class="row">
<div class="col-sm-12">
<div class="alert alert-danger">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<i class="material-icons">close</i>
</button>
@foreach ($errors->all() as $error)
<span> {{ $error }} </span> <br/>
@endforeach
</div>
</div>
</div>
@endif