-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreatepwd.php
More file actions
149 lines (127 loc) · 2.84 KB
/
Copy pathcreatepwd.php
File metadata and controls
149 lines (127 loc) · 2.84 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
<?php
session_start();
$name=$_SESSION['name'];
$user=implode($name);
if(!($user))
{
header('location:home.php?nu');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Create Password</title>
<script type="text/javascript" src="js/createpassword.js"></script>
<link rel="stylesheet" href="css/bootstrap.min.css">
<style type="text/css">
@font-face {
font-family: 'Varela Round';
src: url(VarelaRound-Regular.ttf);
}
body {
background-color: #7d1a9b;
font-size: 12px;
background-image: linear-gradient(to right, rgba(43, 40, 50, 0.8) 0%, rgba(83, 86, 99, 0.8) 0%, rgba(69, 77, 91, 0.6) 00%);
size: 100%;
width: 100%;
height: 100%;
}
.panel
{
margin-top: 20px;
padding-top: 0px;
}
h4
{
margin-top: 120px;
color: #e3a5e5;
font-size: 14px;
}
.hr
{
border: 0;
width: 80%;
height: 1px;
background-image: linear-gradient(to right, rgba(0, 0, 0, 0), #ccc, rgba(0, 0, 0, 0));
}
@media screen and (max-width: 767px) {
.fine {
width: 109%;
margin-top: 10px;
margin-bottom: 20px;
margin-left: 0px;
overflow-y: hidden;
overflow-x: auto;
-ms-overflow-style: -ms-autohiding-scrollbar;
border: 0px solid #dddddd;
-webkit-overflow-scrolling: touch;
}
}
.fine input
{
border-radius: 2px;
width: 60%;
background-color:;
border: 1px solid grey;
margin-top: 5px;
margin-bottom: 5px;
}
.btn
{
margin-top: 0px;
}
.note
{
font-size: 12px;
color: #a79ca8;
margin-left: 20px;
}
a
{
color: pink;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<h3 align="center">Kitchen diary</h3>
</div>
</div>
</nav>
<div class="container">
<h4 align="center">Create Password</h4>
</div>
</div>
</nav>
<div class="text-center">
<div class="container">
<div class="panel panel-default">
<div class="panel-heading">
<b><?php echo "$user" ?></b></div>
<div class="panel-body">
<form name="createpass" method="post" action="usercreated.php" onsubmit="return validate()">
<table class="fine">
<tr>
<td>Password</td>
<td><input type="password" id="pass" pattern="(?=.*\d)(?=.*[A-Za-z]).{5,}" title="5 or more characters with letters and numbers" name="password" required="" onfocus="(this.value='')"></td>
</tr>
<tr>
<td>Confirm Password</td>
<td><input type="password" id="conpass" name="conpassword" required="" onfocus="(this.value='')"></td></tr>
</table>
<hr class="first_ruler">
<button class="btn btn-primary btn-sm" name="submit" >Submit</button>
</div></div></div> <a href="login.php" style="text-decoration: none;"><< Back</a>
</form>
<hr class="hr">
</div>
<div class="note col-sm-4">
<p><u>Note:</u></p>
<p>* Password should contain <i>Minimum 5 chars</i></p>
<p>* Combination of <i>letters & Numbers</i></p>
</div>
</body>
</html>