File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 2323$ app ->on (Application::EVENT_BEFORE_REQUEST , function () {
2424 // echo "Before request from second installation";
2525});
26-
2726$ app ->router ->get ('/ ' , function () {
2827 header ('Location: /login ' );
2928});
29+
3030$ app ->router ->get ('/login ' , [SiteController::class, 'login ' ]);
31+ $ app ->router ->get ('/login ' , [SiteController::class, 'login ' ]);
32+ $ app ->router ->get ('/admin ' , [SiteController::class, 'ad ' ]);
3133$ app ->router ->get ('/login/{id} ' , [SiteController::class, 'login ' ]);
3234$ app ->router ->post ('/login ' , [SiteController::class, 'login ' ]);
3335$ app ->router ->get ('/logout ' , [SiteController::class, 'logout ' ]);
34-
36+ //var_dump(Application::$app->user);
3537// /profile/{id}
3638// /profile/13
3739// \/profile\/\w+
Original file line number Diff line number Diff line change 7979<div class =" login-form" >
8080 <h4 class = " title" >Shop Sens</h4 >
8181 <div class = " form-card" >
82- <form action = " " method = " " >
82+ <form action = " /login " method = " POST " >
8383 <div class = " form-group" >
8484 <label >Email</label >
8585 <input class = " form-control" type = " email" name = " email" >
You can’t perform that action at this time.
0 commit comments