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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Restrict user changing passwordRestrict user changing password
Previous
 
Next
New Post
12/28/2007 7:13 AM
 

Hello All,

I want to restrict my users so that they cannot change their passwords on DNN. How can I achieve it?

Thanks for your help!

Mubashir

 
New Post
12/28/2007 11:43 AM
 

Please Note that the suggestion offered here is a change to the core code, and would be overwritten during a portal upgrade.

You can go into the markup of the control and either set the Visible property to False, or the Enabled property to False.

I believe that the file you would want to modify is the ~/admin/Users/manageusers.ascx file.  This would be the easiest way.  Disabling or hiding this control will not allow the end-users to be able to even see the "Manage Password" control. 

Just go into that file and perform the previously mentioned task(s) to the cmdPassword control.  Here is an example:

<dnn:commandbutton id="cmdPassword" runat="server" 
    resourcekey="cmdPassword" imageurl="~/images/save.gif"
    causesvalidation="False" Visible="False" Enabled="False" />

Setting the Visible property to False will prevent the control from being rendered to the end-user.  Alternatively, setting the Enabled property to False will show the password link, but clicking it will do nothing.  In my experience, the Visible property is the better option from a usability perspective.


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
8/17/2011 12:10 PM
 
So why is this not an option that could be set with a flag in the Web Config file?

It seems it would be very handy for sites like Intranet applications where the Network folks control the passwords, and don't want the users to be able to change them...

And by the way, there are a lot of companies that control the passwords for their users...

 
New Post
9/12/2011 5:11 PM
 
Another way to prevent the users from changing the passwords is to simply remove the UserProfile page. In the Site Settings dialog you can redirect the users profile request that occurs when they click on their name next to the logout button to a different page than the standard User's Profile maintenance control.

If you still want the user to be able to edit their profile, then you would need a custom User's Profile control. We have done this for several sites we maintain. If you would like the code, just email me.
 
New Post
12/17/2015 7:41 PM
 
David House wrote:
Another way to prevent the users from changing the passwords is to simply remove the UserProfile page. In the Site Settings dialog you can redirect the users profile request that occurs when they click on their name next to the logout button to a different page than the standard User's Profile maintenance control.

If you still want the user to be able to edit their profile, then you would need a custom User's Profile control. We have done this for several sites we maintain. If you would like the code, just email me.

 

@DavidHouse - can you please send me the custom user profile control. I am looking to hide the Manage Account & Communication tabs. My Email id - gsingh1983@gmail.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Restrict user changing passwordRestrict user changing 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