Setting up user name and password

Thread Solved

Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Setting up user name and password

 
0
  #1
Jul 21st, 2004
I have a page where the user can enter his username and password. Does anyone have any examples on how to check the database for to make sure the user matches the username and password.

Thanks!!!
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 29
Reputation: dazzlindonna is an unknown quantity at this point 
Solved Threads: 3
dazzlindonna's Avatar
dazzlindonna dazzlindonna is offline Offline
Light Poster

Re: Setting up user name and password

 
0
  #2
Jul 21st, 2004
Something like this should do it:

<CFQUERY name="login" datasource="#dsn#">
SELECT *
FROM Users
WHERE UserName='#username#'
AND Pwd = '#pwd#'
</CFQUERY>

Of course your datasource, table name, fieldnames, and variables have to match your situation.


Originally Posted by cfnut
I have a page where the user can enter his username and password. Does anyone have any examples on how to check the database for to make sure the user matches the username and password.

Thanks!!!
I need to check my ColdFusion Calendar because I think Christmas is coming soon! ;)
***********
Get all the SEO news and tips at SEO Scoop
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 8
Reputation: cfnut is an unknown quantity at this point 
Solved Threads: 0
cfnut cfnut is offline Offline
Newbie Poster

Resolved

 
0
  #3
Jul 22nd, 2004
Thanks, worked good.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ColdFusion Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC