-
Notifications
You must be signed in to change notification settings - Fork 1
/
requestAccount.php
33 lines (32 loc) · 1.29 KB
/
requestAccount.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
<?php
if(isset($_REQUEST['username']) and isset($_REQUEST['password'])){
$hashed_password = hash('sha256',$_REQUEST['password']);
require("SQLconnect.php");
$stmt = $conn->prepare('INSERT INTO pending_atc_login_data (username,hashed_password) VALUES (?, ?)');
$stmt->bind_param('ss',$_REQUEST['username'],$hashed_password);
$stmt->execute();
echo '<script>alert("Accounht information submitted successfully, you will be contacted on discord upon account activation (within 24 hours)")</script>';
}
?>
<!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="style.css">
<title>Document</title>
</head>
<body style="text-align: center;" >
<div>
<form method="post" action="requestAccount.php">
<label for="username">Username (has to match username in PTFS server):</label>
<input type="text" name="username" required>
<br>
<label for="password">Password:</label>
<input type="password" name="password" required>
<input type="submit" value="submit-account-data">
</form>
</div>
</body>
</html>