Skip to content

Commit c659976

Browse files
author
unknown
committed
SOME Edit
1 parent 8dcf709 commit c659976

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

public/index.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,17 @@
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+

views/login.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
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">

0 commit comments

Comments
 (0)