-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathforgot_password.cfm
162 lines (135 loc) · 4.38 KB
/
forgot_password.cfm
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<cfparam name="xss" default="">
<cfquery name="cats" datasource="#dsource#" dbtype="ODBC" username="#uname#" password="#pword#">
SELECT path FROM products
group by path
order by path
</CFQUERY>
<cfparam name="success" default="false">
<cfparam name="msg" default="">
<cfif isDefined('proc_pw')>
<cfquery name="findUser" datasource="#dsource#" dbtype="ODBC" username="#uname#" password="#pword#">
SELECT * from users
where email = '#form.email#'
</cfquery>
<cfif findUser.recordcount>
<cfmail server="#servername#" username="[email protected]"
password="re3objec" to="#findUser.email#" from="[email protected]" subject="Gallery Art Password Retrieval" type="HTML">
<font style="font-size: 10pt; font-family: Arial;">
Your Gallery Art Password is:
<br><br>
#findUser.password#
<br><br>
Please keep in a safe place.
<br><br>
Thank you from Gallery Art.
</font>
</cfmail>
<cfset success = "true" />
<cfset msg = "Your password has been emailed to you." />
<cfelse>
<cfset msg = "That email address is not in our system. Please try again." />
</cfif>
</cfif>
<html>
<head>
<cfoutput>
<title>#companyname# - #titletext#</title>
</cfoutput>
<cfinclude template="meta.cfm">
<cfoutput>
<script language="JavaScript" src="./js/utils.js"></script>
</cfoutput>
<link href="stylesheet.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-34565365-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- BEGIN ROBLY WIDGET CODE -->
<script type='text/javascript'>
var _d_site = _d_site || 'ebb8c5f7da7077e127988b3276107648';
(function(w, d, p, s, s2) {
w[p] = w[p] || function() { (w[p].q = w[p].q || []).push(arguments) };
s = d.createElement('script'); s.async = 1; s.src = '//s3.amazonaws.com/roblyimages/accounts/20559/forms/29541/signup_popup.js';
s2 = d.getElementsByTagName('script')[0]; s2.parentNode.insertBefore(s, s2);
})(window, document, 'Robly');
</script>
<!-- END ROBLY WIDGET CODE -->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table id="Table_01" width="800" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" width="800" height="125" valign="top">
<cfinclude template="top.cfm">
</td>
</tr>
<tr>
<td colspan="2" width="800" valign="top" height="37">
<cfinclude template="navbar.cfm">
</td>
</tr>
<tr height="100%">
<td valign="top" width="173" height="100%">
<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr height="100%">
<td valign="top" height="100%">
<cfinclude template="left.cfm">
</td>
</tr>
</table>
</td>
<td valign="top" width="627" height="100%">
<table cellspacing="0" cellpadding="5" border="0" width="100%">
<tr>
<td align="center" style="padding-top: 10px;">
<strong>FORGOT PASSWORD</strong>
</td>
</tr>
<tr>
<td align="center" style="padding-top: 10px;">
<cfoutput>
<cfif success eq "false">
<cfif len(msg)><strong>#msg#</strong></cfif>
<table cellspacing="0" cellpadding="5" border="0" width="100%">
<form method="post" action="#script_name#">
<tr>
<td align="center">
Enter your email address below, and we will email your password to you:
</td>
</tr>
<tr>
<td align="center">
<input type="Text" name="email" size="40">
</td>
</tr>
<tr>
<td align="center">
<input type="Submit" value="Send My Password" name="proc_pw">
</td>
</tr>
</form>
</table>
<cfelse>
<cfif len(msg)><strong>#msg#</strong></cfif>
</cfif>
</cfoutput>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" valign="baseline">
<cfinclude template="footer_user.cfm">
</td>
</tr>
</table>
<cfinclude template="frmxss.cfm">
</body>
</html>