-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenter.php
More file actions
74 lines (58 loc) · 2.26 KB
/
enter.php
File metadata and controls
74 lines (58 loc) · 2.26 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
<!DOCTYPE html>
<html>
<head>
<title>TechFlow - Login Credential</title>
<meta charset="UTF-8">
<meta http-eequiv="X-UA-Compatible" content="IE-edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="index.css">
<link rel="stylesheet" type="text/css" href="stylemedia.css">
<link rel="icon" href="resources/TF.png" type="image/x-icon">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet">
<script src="admin.js"></script>
</head>
<body>
<div class="horizontal">
<div class="right-space">
</div>
<div class="login-form">
<form action="login.php" method="post">
<h2><img src="resources/TF.png"></h2>
<?php if (isset($_GET['error'])) { ?>
<p class="error"><?php echo $_GET['error']; ?></p>
<?php } ?>
<div class="form-group">
<label>Username</label>
<input type="text" name="uname" placeholder="Username" required><br>
</div>
<div class="form-group">
<label>Password</label>
<div class="password-container">
<input type="password" id="passwordInput" name="password" placeholder="Password" required>
<span class="material-icons-outlined" onclick="togglePasswordVisibility()" id="toggleoff">visibility_off</span>
<span class="material-icons-outlined" onclick="togglePasswordVisibility()" id="toggle">visibility</span>
<br>
</div>
</div>
<button type="submit" style=" margin-top: 3%;">Login</button>
</form>
</div>
</div>
<script>
function togglePasswordVisibility() {
var passwordInput = document.getElementById("passwordInput");
var toggle = document.getElementById("toggle");
var toggleoff = document.getElementById("toggleoff");
if (passwordInput.type === "password") {
passwordInput.type = "text";
toggle.style.display = "none";
toggleoff.style.display = "block";
} else {
passwordInput.type = "password";
toggle.style.display = "block";
toggleoff.style.display = "none";
}
}
</script>
</body>
</html>