Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 help with login code
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

sahil
Starting Member

8 Posts

Posted - 22 July 2001 :  06:51:03  Show Profile
which page contains the login code .. which compares the username entered in the form with the field of database i got to change something nyone plz tell me i m struck wiht it

asp_storm
Average Member

USA
787 Posts

Posted - 22 July 2001 :  11:28:33  Show Profile  Visit asp_storm's Homepage  Send asp_storm an AOL message
inc_top.asp, i think

[_____-asp_newbie-_____]
(__Webmaster__)
[-Newschoolskiing.com-]
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 23 July 2001 :  01:28:06  Show Profile
Well, there are several codes that make up the login sequence.

If you look in your inc_top.asp file, you will see this bit of code near to the top:
select case Request.Form("Method_Type")
case "login"
select case ChkUser2(strDBNTFUserName, Request.Form("Password"))
case 1, 2, 3, 4
Call DoCookies(Request.Form("SavePassword"))
strLoginStatus = 1
case else
strLoginStatus = 0
end select
case "logout"
Call ClearCookies()
end select
The code in red, sends the username and password that the user entered to a function called "ChkUser2" which checks the database to see if thier username and password matches. You can open your inc_functions.asp file and look for the function.

If the function returns the value 1, 2, 3 or 4, that means the username and password matched with the username and password in the database, so it calls the cookie function "DoCookies" which stores the users username and passeord. If it doesn't return one of those numbers then the username and password didn't match.

Hope that helps.

- David
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07