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.0MembershipProvider.UserLogin Method, canMembershipProvider.UserLogin Method, can't find code
Previous
 
Next
New Post
10/13/2006 2:55 PM
 

Ok, can SOMEONE, ANYONE point me in the right direction here...

In the Dotnetnuke Source Code:

I am looking for the method override for the "UserLogin" method that is declared in the:
DotNetNuke.Security.Membership.MembershipProvider class.

I need to create a new UserLogin method and I basically want to take the existing code and extend it(put it in my own class file so it doesn't get overwritten in upgrade), but I have done hundreds of search so classes that inherit the class and can not fine anything...I have found every place that it is referenced from, but can find the actual code that checks the username and password (and verification code) against the db...want to know the sprocs that are called and code around them.

Please a little hint! :-)

Thanks!
Gary

 

 
New Post
10/13/2006 6:06 PM
 

The ValidateUser Method of the UserController takes the username, password and verification code and validates it

UserController.ValidateUser(portalId, Username, Password, VerificationCode, PortalName, IP, loginStatus)

this will return a UserInfo instance that can be used to log the user in with the UserLogin method of the UserController

UserController.UserLogin(portalId, info1, PortalName, IP, CreatePersistentCookie)

 
New Post
10/14/2006 12:17 AM
 

Assuming you intend to inherit from the ASP.Net membership provider, the file you're looking for is located here:

\Library\Providers\MembershipProviders\AspNetMembershipProvider\AspNetMembershipProvider.vb

Keep in mind that this source file isn't included with the install versions, so you'll need to download the source version for access to it.  If you're not using the .net membership provider, pick the right one from the membershipprovider directory.

To inherit from this control, in all honesty, you probably won't need to know the detailed mechanics of the provider.  Just inherit and override that functionality that you need to.

Good luck!


Brandon Haynes
BrandonHaynes.org
 
New Post
10/16/2006 8:47 AM
 

Thanks Kampfer and BrandonHaynes,

BrandonHaynes, I found that set of methods RIGHT after I posted the message :-)  What I was looking at the source, I didn't notice that there was a whole set of projects below the web site project...I will looking in the app code files and web site files...then towards the end of the day, I FINALLY noticed all of the Providers, which is what I was looking for... :-)

Kampfer, thanks for the post. I was actually looking for the code behind the 2 methods that you mentioned...What I need to do is replicate the ones that you mentioned and add my own code onto them.

What I am trying to do is allow a single user to join multiple portals at the same time...Kind of a SSO option.

Not sure how it is going to go, but am going to give it a shot.

Thanks!
Gary

 
New Post
10/16/2006 2:48 PM
 

Hi Gary,

If that's what you're out to accomplish, then you're on the right track.  Inherit a new provider class from the existing one (probably AspNetMembershipProvider), and then override away.  You'll need to make a change to your web.config file to tell DNN to use YOUR provider, but that's pretty straightforward.

Unfortunately, it seems that there is no provider-based logout function for you to override (see my thread at http://www.dotnetnuke.com/Community/ForumsDotNetNuke/tabid/795/forumid/111/threadid/77480/scope/posts/Default.aspx ).  I'm still not sure if this is an oversight or an... odd design decision.

B


Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0MembershipProvider.UserLogin Method, canMembershipProvider.UserLogin Method, can't find code


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