-
Notifications
You must be signed in to change notification settings - Fork 0
/
password.php
67 lines (61 loc) · 2.73 KB
/
password.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
<?php
session_start();
require "base.php";
require "views/password.php";
?>
<!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="public/css/login.css">
<title>Login</title>
</head>
<body>
<h1 class="logo">LO</h1>
<section>
<div class="color"></div>
<div class="color"></div>
<div class="color"></div>
<div class="box">
<div class="square" style="--i:0;"></div>
<div class="square" style="--i:1;"></div>
<div class="square" style="--i:2;"></div>
<div class="square" style="--i:3;"></div>
<div class="square" style="--i:4;"></div>
<div class="square" style="--i:5;"></div>
<div class="container">
<div class="form">
<h2>Change Password</h2>
<form action="password.php" method="POST">
<div class="inputBox">
<input type="text" name="username" value="<?php
if (isset($_SESSION["username"])) echo $_SESSION["username"]; ?>" placeholder="username"
required>
</div>
<div class="inputBox">
<input type="password" name="password" placeholder="old passowrd" required>
</div>
<div class="inputBox">
<input type="password" name="password2" placeholder="new passowrd" required>
</div>
<div class="inputBox">
<input type="submit" name="passwordchange" value="Change">
</div>
<p class="forgot">
<?php if (in_array("verified",$error_array)) echo "verification sucessfull";
elseif (in_array("inurl",$error_array)) echo "invalid url";?>
<?php if (in_array("username",$error_array)) echo "invalid username";
elseif (in_array("passwordnomatch",$error_array)) echo "incorrect password";
elseif (in_array("sucess",$error_array)) echo "verify mail";?>
</p>
<p class="forgot">Know the Password ?<a href="login.php">Sign in</a></p>
<p class="forgot">Dont have an account ?<a href="register.php">Sign up</a></p>
</form>
</div>
</div>
</div>
</section>
</body>
</html>