This topic is locked
[SOLVED]

 Skip Login...

2/15/2006 15:33:29
ASPRunnerPro General questions
sparkg author

Is there a way to go pass in the username and password in a href link to go directly to a "somefile_list.asp" and still have the access and privileges that user gets...skipping the login? We'd like to have a link in our intranet directly to the list view, but still use the user's group access privileges. The users are from a user table, with a 3rd column for group to match with the group set up in Runner.
Thanks!

Sergey Kornilov admin 2/16/2006

Hi,
To go pass in the username and password in a href link please find two following code snippets in login.asp file:

' AfterSuccessfullLogin Event

DoEvent "Call AfterSuccessfulLogin()"

if

...

end if



and replace

if Session("MyURL")<>"" then

Response.Redirect Session("MyURL")

else

Response.Redirect Replace("menu.asp", "%20", " ")

end if



with

if Session("MyURL")<>"" then

Response.Redirect Session("MyURL")

else

if request("url")<>"" then

Response.Redirect Replace(request("url"), "%20", " ")

else

Response.Redirect Replace("menu.asp", "%20", " ")

end if


end if



Now you can go directly to a "somefile_list.asp" if you use

/login.asp?username=demo&password=demopass&remember_password=1&btnSubmit=Login&url=http://ASPRunnerPro/.../somefile_list.asp as a url, where demo is your Username and demopass is your Password.

sparkg author 2/17/2006

Super...thanks Sergey.

Hi,

To go pass in the username and password in a href link please find two following code snippets in login.asp file:
and replace
with
Now you can go directly to a "somefile_list.asp" if you use

/login.asp?username=demo&password=demopass&remember_password=1&btnSubmit=Login&url=http://ASPRunnerPro/.../somefile_list.asp as a url, where demo is your Username and demopass is your Password.