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 Bug Reports (Open)
 Bug w/NT Auth and the admin_*.asp pages
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AnonJr
Moderator

United States
5768 Posts

Posted - 04 December 2009 :  13:42:58  Show Profile  Visit AnonJr's Homepage  Reply with Quote
I get interrupted at work. A *lot*. We're using NT Auth for our internal forum, and I notice that if I'm on an admin page, get interrupted, and then try to do something - I get to try and re-login... which would be fine except its asking for a Username/Password for DB auth and not asking me to resubmit my NT credentials.

What would be the better way to fix it so that its not asking me for something I don't have?

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 13 March 2010 :  12:52:35  Show Profile
Add a tiny routine to check the authentication type at the top of the login page, then request the appropriate method. For example, at the top of "admin_login.asp" & "admin_login_short.asp" pages, you could insert this after the includes:
if strAuthType <> "db" then
	call NTauthenticate()
	if (ChkAccountReg() = "1") then
		call NTUser()
	end if
	Response.Write	"      <p align=""center""><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """><a href="""
	if strTarget = "" then
		Response.Write	"admin_home.asp"
	else
		Response.Write	strTarget
	end if
	Response.Write	""">Click here to Continue</a></font></p>" & vbNewLine
	Response.Write	"      <meta http-equiv=""Refresh"" content=""2; URL="
	if strTarget = "" then
		Response.Write	"admin_home.asp"
	else
		Response.Write	strTarget
	end if
	Response.Write	""">" & vbNewline
	WriteFooterShort
	Response.End
end if
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.12 seconds. Powered By: Snitz Forums 2000 Version 3.4.07