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?
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