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.0username and passwordusername and password
Previous
 
Next
New Post
12/15/2006 5:14 PM
 

How do get a username and a password of a user when a user is allready signed in. There is a link on a page of a my portal that goes to a diifernet website. I need to pass the users  username and password thru that link.

I am using the 4.3.4 version. i am not using the source version.

 
New Post
12/18/2006 10:08 AM
 

Assuming you are using either the DNN Profile or the default ASPNet membership providers, you cannot get the password back.  The passwords are encrypted using a hash function and thus are meant to be never be accessible again.  User name, now that's a different story -- a couple of different ways to get it depending on how your module is set up.  Lets assume you have a module that inherits from PortalModuleBase -- you can use the System.Web.Security.Membership.GetUser(true) -- this returns the actively logged in user.  Otherwise, if you are inheriting from UserModuleBase, you could use a "this.UserInfo" to get the userinfo object about the current user.

Hope that helps,

- Fooberichu


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
12/18/2006 11:56 AM
 

Get a reference to the UserInfo class.
This is a shared class and you will get all the user information properties.

Let me know if you need code samples.


Maxiom TechnologyAntonio Chagoury | Microsoft MVP
Maxiom Technology
Professional .net & DotNetNuke Solutions
web: www.maxiomtech.com
blog: www.cto20.com
twitter: @antoniochagoury & @maxiomtech

 
New Post
12/18/2006 11:59 AM
 
could u send me some code samples
 
New Post
12/18/2006 1:19 PM
 

i am kind of confused. I am not using the source version so i cannot change the code. (cannot compile the dll)

What steps should i take to pass the username to a differnet page. If i can pass the username i can get the password because the password is not decrypted. I changed the config file.

Any help will be apperciated.

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0username and passwordusername and password


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