-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathreset_password.html
More file actions
204 lines (188 loc) · 9.33 KB
/
reset_password.html
File metadata and controls
204 lines (188 loc) · 9.33 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<html>
<head>
<title>Password Reset</title>
<meta property="og:title" content="Password Reset">
<meta property="og:description" content="Change your password">
<meta property="og:image" content="images/logo.png">
<meta property="og:url" content="https://www.cssa.dev/"></meta>
<meta name="google-signin-client_id" content="834594227639-dntdsbdaej8rsfhspugmaft12lcorhc8.apps.googleusercontent.com">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<script src="https://apis.google.com/js/platform.js?onload=onLoad" async defer></script>
<script src="https://kit.fontawesome.com/df7e7c41fe.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://www.gstatic.com/firebasejs/8.3.2/firebase.js"></script>
<script src="scripts/script.js"></script>
<script src="scripts/authorized.js"></script>
<link rel="stylesheet" type="text/css" href="styles/styles.css">
<link rel="stylesheet" type="text/css" href="styles/about.css">
<link rel="stylesheet" type="text/css" href="styles/footer.css">
<link rel="stylesheet" typev="text/css" href="styles/pageheader.css">
<link rel="icon" href="images/favicon.ico">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YGQJ626TH7%22%3E"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-YGQJ626TH7');
</script>
<style>
.field {
zoom: 150%;
margin-top: 100px;
width: 200px;
}
.field input {
margin-bottom: 10px;
}
@media only screen and (max-width:992px) {
#main {
display: flex;
padding-top: 120px;
padding-bottom: 20px;
background-color: #212423;
zoom: 130%;
}
#header {
padding-top: 360px;
padding-bottom: 50px;
}
}
@media only screen and (min-width:992px) {
#main {
display: flex;
padding-top: 80px;
background-color: #212423;
}
#header {
padding-top: 180px;
padding-bottom: 50px;
}
}
</style>
</head>
<body>
<div class="modal fade" id="setLabel" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" style="color:black;" id="exampleModalLabel"></h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div style="color:black;" class="modal-body" id="label0B"></div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="header">
<nav class="navbar navbar-expand-lg fixed-top navbar-dark">
<div class="container-fluid">
<a class="navbar-brand" href="/">
<img src="images/logo.png" class="d-inline-block align-text-top">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#ham" aria-controls="ham" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="ham">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item">
<a class="nav-link active" aria-current="page" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../about.html">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../competition.html">Competition</a>
</li>
<li class="nav-item">
<a class="nav-link" href="../dashboard.html">Dashboard</a>
</li>
</ul>
<a id="navbar-login"></a>
</div>
</div>
</nav>
<h1 id="title">Password Reset </h1>
</div>
<div id="main" class="main-section">
<center><div class="field">
<form action="javascript:changePassword();">
<input style="color: black;" id="email" type="text" placeholder="Your Email" required>
<input style="color: black;" id="passwordA" type="text" placeholder="New Password" required>
<input style="color: black;" id="passwordB" type="text" placeholder="Re-type password" required>
<button style="color: black;" type="submit"> Reset Password </button>
</form>
</div></center></div>
<footer style="margin-top: -20px;">
<div class="row">
<div class="col-0 col-md-1"></div>
<div class="col-md-12 col-lg-4" style="padding-right: 50px;">
<div class="col-sm">
<div id="logo">
<div class="cssa-logo">
<img src="images/header-logo.png" alt="CSSA">
</div>
<br>
<div class="over">
<p>CSSA stands for Computer Science Student Association. It is an organization that focuses on developing computer science skills
through competitions and events. Competitors compete in multiple competitions per year and gain a chance to win amazing prizes. Join today!
</p>
</div>
</div>
</div>
</div>
<div class="col-md-12 col-lg-3" style="padding-right: 50px;">
<div id="contact-info">
<h4>Pages</h4>
<p>
<a class="footlink" href="/">Home</a><br>
<a class="footlink" href="about.html">About</a><br>
<a class="footlink" href="competition.html">Competition</a>
</p>
<h4>Contact Info</h4>
<p>
Email: crewcssa@gmail.com
<br>
<i class="fab fa-instagram" onclick="window.open('https://www.instagram.com/official.cssa/')"></i>
<i class="fab fa-discord" onclick="window.open('https://discord.gg/xkVJwWZeds')"></i>
</p>
</div>
</div>
<div class="col-md-12 col-lg-4" style="padding-right: 50px;">
<form action="javascript:sendContact();" id="form">
<h4 style="text-align: center;" class="title">
REACH OUT TO US!
</h4>
<input maxlength="50" type="text" id="contact_name" placeholder="Name" required/>
<input maxlength="70" type="email" id="contact_email" placeholder="Email" required/>
<textarea maxlength="8000" type="text" id="contact_message" placeholder="Message" required></textarea>
<button type="submit">SEND</button>
</form>
</div>
</div>
<hr style="color: white"><p>© 2020-2021 Computer Science Student Association. All Rights Reserved</p>
</footer>
<script>
const params = new URLSearchParams(document.location.search);
const mode = params.get("mode");
const oobCode = params.get("oobCode");
if (mode == null || oobCode == null) {
window.location = "index.html";
}
function changePassword() {
let email = document.getElementById("email").value;
let a = document.getElementById("passwordA").value;
let b = document.getElementById("passwordB").value;
if (a != b) {
setLabel('Error', 'New passwords must match');
} else {
updatePassword(email, a, oobCode);
}
}
</script>
</body>
</html>