<commit_before><cfparam name="Attributes.Email" type="string" default="">
<cfparam name="Attributes.Password" type="string" default="">
<cfparam name="Attributes.RememberMe" type="string" default="">

<!--- CHECK IF CLIENT.LOGIN EXISTS // REMEMBER ME FUNCTIONALITY
04/14/2010
TO DO: NEEDS UPDATED FOR NEW CE_PERSON TABLE LOGIN --->
<cfif isDefined("Client.Login") AND Client.Login NEQ "">
	<cfset LoggedIn = Application.Auth.doLogin(PersonID=Client.Login)>
<cfelseif Attributes.Email NEQ "" OR Attributes.Password NEQ "">
	<cfset LoggedIn = Application.Auth.doLogin(Email=Attributes.Email, Password=Attributes.Password, RememberMe=Attributes.RememberMe)>
</cfif>

<cfif isDefined("LoggedIn") AND LoggedIn>
	<cfif isDefined("client.lastActivity") AND client.lastActivity NEQ 0>
		<cflocation url="/activity/#client.lastActivity#" addtoken="no">
    <cfelse>
		<cflocation url="#Cookie.Settings.LastPage#" addtoken="no">
    </cfif>
<cfelseif isDefined("LoggedIn") AND NOT LoggedIn>
	<cflocation url="#myself#Main.Login?FailMessage=Authentication failed.  If this is your first time logging in, please make sure you have verified your email address via the verification email you received." addtoken="no" />
<cfelse>
	<cflocation url="#myself#Main.Login" addtoken="no" />
</cfif><commit_msg>fixed login issue<commit_after><cfparam name="Attributes.Email" type="string" default="">
<cfparam name="Attributes.Password" type="string" default="">
<cfparam name="Attributes.RememberMe" type="string" default="">
<cfparam name="LoggedIn" type="boolean" default="false" />
<!--- CHECK IF CLIENT.LOGIN EXISTS // REMEMBER ME FUNCTIONALITY
04/14/2010
TO DO: NEEDS UPDATED FOR NEW CE_PERSON TABLE LOGIN --->
<cfif isDefined("Client.Login") AND Client.Login NEQ "">
	<cfset LoggedIn = Application.Auth.doLogin(PersonID=Client.Login)>
<cfelseif Attributes.Email NEQ "" OR Attributes.Password NEQ "">
	<cfset LoggedIn = Application.Auth.doLogin(Email=Attributes.Email, Password=Attributes.Password, RememberMe=Attributes.RememberMe)>
</cfif>

<cfif LoggedIn>
	<cfif isDefined("client.lastActivity") AND client.lastActivity NEQ 0>

		<cflocation url="/activity/#client.lastActivity#" addtoken="no">
  <cfelse>
    <cfdump var="#Cookie#" />
		<cflocation url="/" addtoken="no">
  </cfif>
<cfelseif NOT LoggedIn>
	<cflocation url="#myself#Main.Login?FailMessage=Authentication failed.  If this is your first time logging in, please make sure you have verified your email address via the verification email you received." addtoken="no" />
<cfelse>
	<cflocation url="#myself#Main.Login" addtoken="no" />
</cfif>
{'fraction_non_alphanumeric': 0.14478764478764478, 'fraction_numerical': 0.0069498069498069494, 'mean_word_length': 6.237430167597766, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7287909', 'n_tokens_mistral': 852, 'n_tokens_neox': 817, 'n_words': 211}