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.
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="alert alert-danger alert-dismissible fade show" role="alert">
@foreach ($errors->all() as $error)
{{ $error }} <br>
@endforeach
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
@endif