Intrafoundation Software


 


 

Forums, News and Articles

You may post here on any subjects related to this site or the software therein. (Most everything on this site is tied into the forums so that you may leave or post comments about it.)

List all    New Post   

Forums RE:validate login on domain

      Date: September 12 2002 09:19 PM
JR,
there are some examples of this in the new version. This will tell you whether the logon is correct or not. Once you get past this, you will need to decide how you want to manage your sessions (variables or cookies - variables are the most secure & efficient).

- Once you mapped out your session setup, in place of the text reading "Granted" (below) you will insert your session activation query & in place of the "Denied" text you will put your code for a second login attempt - notifying the user that their logon has failed.

Hope this helps,
Shaun



This should work as long as the user accounts are in the domain as you said. Just insert this into your .cfm page

Code:

<CFX_Users ACTION="IsValid" USER="#form.user#" PASSWORD="#form.password" Domain="#domain#">

<table border=1>
<tr>
<th>User</th>
<th>IsValid</th>
</tr>
<CFIF IsDefined("Users")>
<CFIF IsQuery(Users)>

<CFLOOP QUERY="Users">
<tr>
<CFOUTPUT>
<td>#User#</td>
<td><CFIF IsValid IS "1">Granted<CFELSE>Denied</CFIF></td>
</CFOUTPUT>
</tr>
</CFLOOP>

</CFIF>
</CFIF>
</table>
Delete    Edit    Reply