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.0Auto Login Module Development.... ?Auto Login Module Development.... ?
Previous
 
Next
New Post
4/1/2008 11:25 AM
 

Hey guys

 

I am an ASP.NET Developer. Pretty new to DNN. It actually seems quite complex coding across so many different layers. I have a project to do involving AUTOMATICALLY logging in users if they fall into a certain IP range. With some settings as well, for example

If a user is from IP 10.0.0.6 then REDIRECT to home.aspx, else take to regular login screen.

At first I thought I would create a custom module and add it, but it seems that the login feature is 'hard coded' into any DNN website.

I usually develop in C Sharp, and I see all the DNN code is in VB.

1)  Am I correct in assuming I would have to edit the DNN existing code for visual basic to pull this off, or would a custom module be possible?

2)  Also any Help of what modules or files I would need to work on would be great. The DNN standard documentation seems a little cryptic

Thank for all the help

 

 

 

 
New Post
4/1/2008 1:24 PM
 

1) Create your own custom module.

2) Reuse the functionality from the Login module in your own module and then add it to a page that is configured as the Login Page through Admin Site Settings.


Do you know the truth when you hear it?
Néstor Sánchez
The Dúnadan Raptor -->Follow Me on Twitter Now!
 
New Post
4/2/2008 10:47 AM
 

Chris,

It may or may not fit your needs (hard to tell exactly based on the email), but you could look into SW.AutoLogon.  It has several modes for automatically logging users in, amongst them, a "LoginSwitcher" and "LinkButton" (link button has automatic mode that can lock down based on IP range).  If it doesn't meet your needs but comes close let me know and I could look about adding the features to meet your needs.

Otherwise, you can develop modules in C# or VB, doesn't matter.  I use C# for all the modules I develop -- I have 3 commercially available modules, 1 free one, and have developed 15+ in house for my day job.  See Michael Washington's tutorials for module development.  His site: http://adefwebserver.com/DotNetNukeHELP/

Good luck!


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
4/3/2008 11:16 PM
 

No there is no need to hack the existing code to handle this sort of thing.

Firstly the LOGIN feature is not HARD CODED as such - yes there is a LOGIN skin object placed on most
skins - but you are free to create your own login methodology - autologin etc.

Create a SKIN objec to use instead of the LOGIN skin object
t - which is effectively a module that is attached to the skin itself instead of to the menu structure.

Every time a page is displayed this skin object will be called.

In this module:

Test to see if user is already logged on.
Test for IP range

REDIRECT users accorgingly.

Westa

 

 
New Post
4/14/2008 9:09 AM
 

Ok thanks for the help

 

I have done quite a bit of work so far.

 

I only have one problem now, maybe someone can help me out again

I want to auto login a specific user. Say Mike

Now I use the command called UserController.ValidateUser("Mike","Password")

now the problem is, I have to pass this method the username (which I have) and the password (which is stored in the database). From what I can see, it is stored in a MD5 hash format. So is there any method in which I can retrieve the password, and then validate the user?

 

 

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Auto Login Module Development.... ?Auto Login Module Development.... ?


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