-
Notifications
You must be signed in to change notification settings - Fork 0
/
getPassword.cfm
45 lines (45 loc) · 1.12 KB
/
getPassword.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
<cfset pageTitle = "Retrieve Password">
<cfinclude template="incBegin.cfm">
<cfif not isDefined("FORM.Submit")>
<cfinclude template="formGetPassword.cfm">
<cfelseif isDefined("FORM.Submit")>
<cfif FORM.Submit eq "Cancel">
<cflocation url="index.cfm" addtoken="no">
<cfelse>
<cfscript>
if ( not isDefined("FORM.UserName") )
{
up2snuff = 0;
em = 'Missing required account information';
}
else
{
up2snuff = 1;
}
</cfscript>
<cfif not up2snuff>
<cfinclude template="formGetPassword.cfm">
<cfelse>
<cfinclude template="incCheckForm.cfm">
<cfif missingRequired>
<cfinclude template="formGetPassword.cfm">
<cfelse>
<cfscript>
UserName = Trim(StripCR(FORM.UserName));
</cfscript>
<cfinclude template="verifyAccount.cfm">
<cfif not up2snuff>
<cfinclude template="formGetPassword.cfm">
<cfelse>
<cfinclude template="emailPassword.cfm">
<cfif not up2snuff>
<cfinclude template="incError.cfm">
<cfelse>
<cfinclude template="passwordMailed.cfm">
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
</cfif>
<cfinclude template="incEnd.cfm">