This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsignup.php
71 lines (58 loc) · 3.18 KB
/
signup.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
// include_once('../lib/auth.php');
// include_once('../lib/csrf.php');
session_start();
if ($_SESSION['user_token']||$_SESSION['admin_token']){
header('Location:../index.php');
exit();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://bootswatch.com/5/minty/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-dark-5@1.1.3/dist/css/bootstrap-dark.min.css"
media="(prefers-color-scheme: dark)" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css"
crossorigin="anonymous">
<link rel="stylesheet" href="./main.css">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="client-validation.js"></script>
<link rel="icon" type="image/x-icon" href="https://img.icons8.com/material-outlined/24/000000/pixel-cat.png">
<title>IERG4210 Store Sign Up</title>
</head>
<body class="bg-light">
<section class="vh-100 gradient-custom">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-md-8 col-lg-6 col-xl-5">
<div class="card bg-primary text-white" style="border-radius: 1rem;">
<div class="card-body p-5 text-center">
<form class="mb-md-5 mt-md-4 pb-5 needs-validation" action="auth-process.php?action=signup" method="post">
<h2 class="fw-bold mb-2 text-uppercase">Sign Up</h2>
<p class="text-white mb-5">Please enter a pair of login and password!</p>
<input type="email" id="email" placeholder="Email Address" name="email" class="form-control form-control-lg my-3"
required="required" />
<input type="password" placeholder="New Password" pattern="^[\w@#$%!\^\&\*\-]+$" autocomplete="new-password" id="new-password" name="pw" class="form-control form-control-lg my-3"
required="required" />
</p>
<button class="btn btn-outline-light btn-lg px-5" type="submit">Sign Up</button>
<input type="hidden" name="nonce" value="<?php echo csrf_getNonce('signup'); ?>"/>
</form>
<div>
<a href="#!" class="text-white-50 fw-bold">Back to Login</a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</body>
</html>