Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
Verndale
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Auto Login Module Development.... ?
Previous Previous
 
Next Next
New Post 4/1/2008 9:25 AM
Informative
User is offline Chris
17 posts
10th Ranked


Auto Login Module Development.... ? 

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 11:24 AM
User is offline Hooligannes
1589 posts
www.nesinteractivos.com
5th Ranked






Re: Auto Login Module Development.... ? 

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?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 4/2/2008 8:47 AM
User is offline Fooberichu
467 posts
www.seeleyware.com
8th Ranked


Re: Auto Login Module Development.... ? 

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!


-- Fooberichu
http://www.seeleyware.com
 
New Post 4/3/2008 9:16 PM
User is offline Wes Tatters
410 posts
8th Ranked




Re: Auto Login Module Development.... ? 

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 7:09 AM
User is offline Chris
17 posts
10th Ranked


Re: Auto Login Module Development.... ? 

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 Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Auto Login Module Development.... ?
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com
Smart-Thinker
DNN Modules for Social Networks for as low as $69 for 6 modules! We also maintain the DotNetNuke Directory - http://DNNDir.com
www.smart-thinker.com
DNN Photo Gallery
Complete Photo Gallery Management!
www.dnnPhotoGallery.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP