Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Help with user information

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
jncraig
Posts:79



10/10/2007 11:29 AM  

I have two things that I need to do in a custom module.  Can you help me with these?

1.  Given a username and password, how can I re-verify that those correspond to a legitimate user.  This is not necessarily the user who is logged in.

2. Given a username, how can I determine the security roles assigned to the user.

John Mitchell
Posts:3033



10/14/2007 8:51 AM  

First you would want to get the user object with UserController.GetUserByName method.

Then use the UserController.ValidateUser to authenticate a User.  You will see it in the SignIn.ascx control ( or the Login.ascx which is new in DNN 4.6)

For getting all the security Roles of a given User you use the GetUserRoles method of the RoleController.

 

 

jncraig
Posts:79



10/14/2007 9:44 AM  
Thanks again!
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >General-DNN-Help > Help with user information



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information