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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login Process Cutomized!Login Process Cutomized!
Previous
 
Next
New Post
8/30/2008 11:37 AM
 

Hi Friends,

I have created a customize login mechanism in my Previous project which was based on DotNetNuke4.5,

But same thing I am trying to apply but I am unable to find the way.

I have created a Popup where user will enter userid and password then authentication process will start. But in previous version I did something like first made authentication about user present in database, and then called the Authentication process.

 

But now my problem is how I can do the same process in DNN 4.8, I am able to verify the user and get the USERINFO object on loginBTN of Login popup window. But after verifying the same user it should logged in to website.

 Demo of previous version = www.printobazaar.in

 

 


Sandeep Sachan

Software Development

 
New Post
8/30/2008 10:28 PM
 

Dotnetnuke has removed the authentication out of the core and into a more module approach.  This is exciting stuff because now you won't have to reapply your customization everytime you update Dotnetnuke.

Authentication providers (as they are known) are now stored in /DesktopModules/AuthenticationServices

The folder labled DNN is the core authetnication, that you are use to modifiying.

I hope that helps,

Stuart


Hilbert Solutions, LLC
Owner, Hilbert Solutions, LLC
http://www.HilbertSolutions.com
A DNN Service Provider
From Module Development to DNN Upgrades, your one stop DNN Shop
 
New Post
9/1/2008 6:17 AM
 

Sandy wrote

Hi Friendsssssssssssssssssss,

I have created a customize login mechanism in my Previous project which was based on DotNetNuke4.5,

But same thing I am trying to apply but I am unable to find the way.

I have created a Popup where user will enter userid and password then authentication process will start. But in previous version I did something like first made authentication about user present in database, and then called the Authentication process.

 

But now my problem is how I can do the same process in DNN 4.8, I am able to verify the user and get the USERINFO object on loginBTN of Login popup window. But after verifying the same user it should logged in to website.

 Demo of previous version = www.printobazaar.in

 

 


Sandeep Sachan

Software Development

 
New Post
9/1/2008 7:40 AM
 

This is my code to login a user:

   Dim objUserController As New UserController
   Dim objUser As UserInfo = UserController.GetUser(PortalId, ReqUserId, False)
   objUser.Membership.Password = pass
   If objUser Is Nothing Then Exit Sub
   Dim ipAddress As String = ""
   If Not HttpContext.Current.Request.UserHostAddress Is Nothing Then
    ipAddress = HttpContext.Current.Request.UserHostAddress
   End If

   'Try to validate user
   Dim loginStatus As UserLoginStatus
   objUser = UserController.ValidateUser(PortalId, objUser.Membership.Username, objUser.Membership.Password, "", PortalSettings.PortalName, ipAddress, loginStatus)

   If objUser Is Nothing Then
    Select Case loginStatus
     Case UserLoginStatus.LOGIN_USERNOTAPPROVED
     Case UserLoginStatus.LOGIN_USERLOCKEDOUT
     Case UserLoginStatus.LOGIN_FAILURE
    End Select
   Else    'Login Success
    Dim updatePassword As Boolean = False
    Dim updateProfile As Boolean = False
    'Set the Page Culture(Language) based on the Users Preferred Locale
    If (Not objUser.Profile Is Nothing) AndAlso (Not objUser.Profile.PreferredLocale Is Nothing) Then
     Localization.SetLanguage(objUser.Profile.PreferredLocale)
    Else
     Localization.SetLanguage(PortalSettings.DefaultLanguage)
    End If
    'Complete Login
    UserController.UserLogin(PortalId, objUser, PortalSettings.PortalName, ipAddress, False)
   End If
   Me.Response.Redirect(DotNetNuke.Common.NavigateURL, True)

Note this code uses a UserID instead of name. You'll want to change it to use a username.

Peter

 


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
New Post
9/1/2008 3:27 PM
 

Hi Peter,

Thanks for your response on time. but i want to make myself littlebit clear, i am able to validate the user with database field but using the usercontroller but i am not getting the way how can i set the current user as aurthenticated. So that when userid and password validation process complete, i must logged in user by useing the dotnetnuke authentication machanisem.

I hope i made myview little more clear to you.

 

 


Sandeep Sachan

Software Development

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Login Process Cutomized!Login Process Cutomized!


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