Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External Login formExternal Login form
Previous
 
Next
New Post
9/15/2007 9:38 PM
 

 

I find a lot of threads on this but nobody ever appears to have actually done it.

Our company has a web front end that already has a very nice graphical login and password box.  I need to be able to re-direct it to DNN to prevent the user from having to login twice.

Am trying to make this code work from our front page,  but have not had success.

 <form name="Form" method="post" action="dnn/Default.aspx" id="Form" enctype="multipart/form-data" style="height: 100%;">
Name:<input name="dnn$ctr459$Signin$txtUsername" type="text"><br>
Password:<input name="dnn$ctr459$Signin$txtPassword" type="password"><br><br>
<input name="Submit1" type="submit" value="Login" />

</form>

I would love to hear some suggestions on how to make this work.

I did find something curious.   If you post the username in a field called "username"  it does put the users name in the login field but never logs in.

 

 
New Post
9/17/2007 2:36 AM
 

For security reasons, the default DNN signin module does not support direct log thru from other sites.

If you require this sort of functionality you will need to create a custom signin module to handle
the login process ... or get someone to create such a module for you.

it is not too difficult a task - but be aware that doing this sort of thing does open up potential
security holes ... so ideally you would want to make sure you encrypt the password data.

Westa

 
New Post
9/19/2007 10:12 AM
 

Were you able to find a way to login from an external sign-in form? I was also looking for a way to do this.

I see in the signin.ascx.vb code where the username can be populated from a Querystring but not the password.  I would prefer not to modify any of the core files if I can avoid it.

 

 
New Post
10/2/2007 9:36 AM
 

This works.   I am sure lots of people here  could make comments or improvements,  but it works.

<form name="Form" method="post" action="http://www.mywebsite.com/dnn/Home/tabid/37/ctl/Login/Default.aspx?returnurl=%2fdnn%2fDefault.aspx" enctype="multipart/form-data" >
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input name="__dnnVariable" type="hidden" id="__dnnVariable" value="" />
<input name="ScrollTop" type="hidden" id="ScrollTop" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" />
<input name="dnn$ctr$Signin$txtUsername" type="text"  />
<input name="dnn$ctr$Signin$txtPassword" type="password"  />
<input type="submit" name="dnn$ctr$Signin$cmdLogin" value="Login"  />
</form>

For anyone that uses the above example,  there are security issues with this.

 
New Post
10/4/2007 3:22 PM
 

that only works on older versions of DNN (can't remember which version it stopped working for... possible 4.5.x) from what I was able to determine.  Alternatively, check out my module which I designed specifically for this reason (and a few other necessities).  Can see the SW.AutoLogon module here: http://www.seeleyware.com/ProductsModules/SWAutoLogon/tabid/306/language/en-US/Default.aspx


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0External Login formExternal Login form


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out