Authentication works
This commit is contained in:
36
view/ConnForm.php
Normal file
36
view/ConnForm.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/styles.css" rel="stylesheet">
|
||||
<title>Connexion</title>
|
||||
</head>
|
||||
|
||||
<body class="container">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-4">
|
||||
<form id="formLogin" action="index.php?route=handleConnForm" method="post">
|
||||
<h3 class="text-center">Identifiez-vous</h3>
|
||||
<div class="form-group">
|
||||
<label for="id">Login :</label><br>
|
||||
<input type="text" name="login" id="id" class="form-control">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="mdp">Pass :</label><br>
|
||||
<input type="password" name="pass" id="mdp" class="form-control">
|
||||
</div>
|
||||
<br>
|
||||
<div class="form-group text-end">
|
||||
<input type="submit" name="submit" class="btn btn-primary btn-md" value="Valider">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
14
view/home.php
Normal file
14
view/home.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
<link href="../css/bootstrap.min.css" rel="stylesheet">
|
||||
<script src="../js/bootstrap.bundle.min.js"></script>
|
||||
</head>
|
||||
<body class="container">
|
||||
<?php include "../utils_inc/inc_navbar.php"; ?>
|
||||
<h1>Hello et bienvenue, co OK.</h1>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user