Work on incomes & expanse

This commit is contained in:
TiclemFR
2024-01-27 10:32:55 +01:00
parent 336f2bae93
commit ce5b9ac0c8
48 changed files with 27832 additions and 15 deletions

View File

@@ -9,6 +9,9 @@ use Inertia\Inertia;
class UserController extends Controller
{
/**
* Use to login a user
*/
public function login(Request $request){
$credentials = $request->validate([
'email' => ['required', 'email'],
@@ -19,7 +22,7 @@ class UserController extends Controller
return redirect()->intended('/');
}
return redirect()->back()->withErrors([
return back()->withErrors([
'message' => 'The provided credentials do not match our records.',
]);
}