943,498 Members | Top Members by Rank

Ad:
  • ColdFusion Discussion Thread
  • Marked Solved
  • Views: 6600
  • ColdFusion RSS
Jul 21st, 2004
0

Setting up user name and password

Expand Post »
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!!!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cfnut is offline Offline
8 posts
since Jul 2004
Jul 21st, 2004
0

Re: Setting up user name and password

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.


Quote 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!!!
Reputation Points: 10
Solved Threads: 3
Light Poster
dazzlindonna is offline Offline
29 posts
since Jun 2004
Jul 22nd, 2004
0

Resolved

Thanks, worked good.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cfnut is offline Offline
8 posts
since Jul 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ColdFusion Forum Timeline: CF Job market
Next Thread in ColdFusion Forum Timeline: Registration form help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC