I have write a ASP using ImpersonateUser method to valid the use login and password, the code is shown at below:
Set oLogin = Server.CreateObject("001.ImpersonateUser"
If not oLogin.IsValidLogon(cEmpNo, cEmpPwd, cDomain) then
cMsg = "Incorrect password."
else
cMsg = "Correct password."
End if
But My boss complain that the page is needed a very long time to check when the input password is incorrect.
How to solve the problem ?
Set oLogin = Server.CreateObject("001.ImpersonateUser"
If not oLogin.IsValidLogon(cEmpNo, cEmpPwd, cDomain) then
cMsg = "Incorrect password."
else
cMsg = "Correct password."
End if
But My boss complain that the page is needed a very long time to check when the input password is incorrect.
How to solve the problem ?