Can anyone help me with tis one ...?
I'm sure I am p****ng up the wrong tree and I should really have a
username/password table but here goes...
I have setup a connection to the SQL server with through MX Data Sources
Window
I have an account in SQL called Advisers (I think this needs to be a group
or something) with Password password
I then have the following logon code.
<cfif isdefined("session.loggedin")>
<cftry>
<CFQUERY NAME="alldata"
DATASOURCE="SecureDSN"
username = '#decrypt(session.UserName, application.key)#'
password = '#decrypt(session.password, application.key)
#'>
SELECT *
FROM School_Details
WHERE 0=0
</CFQUERY>
<cfcatch type="any">
<cfset session.nologin=1>
<cflocation url="loggedin/password.cfm">
</cfcatch>
</cftry>
<cfoutput query="alldata">
#EstablishmentName#<br>
#Address1#<br>
<p></p>
</cfoutput>
<cfelse>
<cfoutput>
Before you can access this data you need to <a href
="loggedin/password.cfm" target="_top">login</a>
</cfoutput>
</cfif>
The idea is that the user enteres their usernae & password which will then
pass along to SQL and hey diddle do they can access.
This all works fine if you use the username as Advisers & Password as
password
I need to have the advisers as a group with several usernames and passwords
in it which will authenticate against the code.
Can this be done or am I pssng up the wrong tree again....?
Regards - Paul
*************************************************************************************************
The information contained within this e-mail (and any attachment) sent by Birmingham
City Council is confidential and may be legally privileged. It is intended only for
the named recipient or entity to whom it is addressed. If you are not the intended
recipient please accept our apologies and notify the sender immediately, or telephone
+(44) 121 303 6666. Unauthorised access, use, disclosure, storage or copying is not
permitted and may be unlawful. Any e-mail including its content may be monitored and
used by Birmingham City Council for reasons of security and for monitoring internal
compliance with the office policy on staff use. E-mail blocking software may also be
used. Any views or opinions presented are solely those of the originator and do not
necessarily represent those of Birmingham City Council. We cannot guarantee that this
message or any attachment is virus free or has not been intercepted and amended.
*************************************************************************************************
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]