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

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Login form data not used on screen
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ajhvdb
Junior Member

Netherlands
392 Posts

Posted - 24 September 2002 :  07:06:35  Show Profile
When you type in your name and password and click on submit
you see an empty login form on the screen with the message:
"You logged on successfully!"

to prevent this, in inc_header.asp add the code in red:
select case Request.Form("Method_Type")
	case "login"
		strEncodedPassword = sha256("" & Request.Form("Password"))
		select case chkUser(strDBNTFUserName, strEncodedPassword,-1)
			case 1, 2, 3, 4
				Call DoCookies(Request.Form("SavePassword"))
				strLoginStatus = 1
				strDBNTUserName = strDBNTFUserName			
            case else
				strLoginStatus = 0
				strDBNTUserName = ""
			end select
	case "logout"
		Call ClearCookies()
end select

This will add another database call while logging in with the form.

if you have problems with active.asp (missing topics) add the code in red in inc_header.asp
if trim(strDBNTUserName) <> "" and trim(Request.Cookies(strUniqueID & "User")("Pword")) <> "" then
	chkCookie = 1
	mLev = cLng(chkUser(strDBNTUserName, Request.Cookies(strUniqueID & "User")("Pword"),-1))
	chkCookie = 0
	if IsEmpty(Session(strCookieURL & "last_here_date")) then
		Session(strCookieURL & "last_here_date") = ReadLastHereDate(strDBNTUserName)
	end if
else
	MemberID = -1
	mLev = 0
end if


Maybe I should have written this topic in the Mod forum but the first problem IMO should be looked at (it's not a bug).
Feel free to disregard this or delete
  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.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07