Hi,
I am trying to write a function which will return a direct login url, I mean by using this link user will be able to login to DNN site, they do not have to type login information. User name and password will be hardcode with the url.
So to achive this I am creating one webpage, for example AnotherLogin.aspx and URL will be something like, http://www.test.com/AnotherLogin.aspx?username=test&password=password. Now when user will click the link then into the page_load I am collecting login details., eg., username and password and calling DoLogin method
private void DoLogin(string username, string password) {
// Use DNN API to authenticate user
.................. NEED HELP HERE ............................
// if ok then forward to http://www.test.com
// or forward to http://www.test.com/LoginError.aspx
}
Can anybody tell me how can I do this? Is there any method/s I can call, which will not only authenticate user, but also will behave same as normal DNN login (when user manually providing login details and clicking login button).
Thanks for any reply.