DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Force users to change password.

Sort:
You are not authorized to post a reply.





New Around Here





    Is there a way to force password changes to the users that do not meet our new password requirements?

    Thanks






    Advanced Member





      The Users database table has an UpdatePassword column, I guess just setting it to true for all users would force all users to have to change their passwords on next login. That beeing said, I would test it first just to make sure my guess is right here...





      Senior Member





        Hello!  

        There currently isn't an easy way to just force this on all user accounts on the site, but you can user-by-user.  However, this won't help.  I don't often put in SQL for people to run, for all kinds of reasons.  However, it's the best way to help you in this instance.  

        The query below is a great start for what you're looking for.  You simply want to change the UpdatePassword column value in the Users table from 0 to 1 to trigger a password reset the next time someone attempts to log in.  

        UPDATE [Users] 
        SET [UpdatePassword] = 1 
        WHERE IsSuperUser = 0;

        The query above does not take anything into account, except for not updating any user account that is a superuser.  You may want to filter by the site (portal) using the UserPortals table, by security role (group) using the Roles table, etc.  

        You can run this all from the SQL Console, without having to log into the database directly.  






        New Around Here





          Thanks everyone, that's what I thought.

          Doing an update on the UpdatePassword = 1 

           

           

          You are not authorized to post a reply.

          These Forums are dedicated to the discussion of DNN Platform.

          For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

          1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
          2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
          3. 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.
          4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
          5. No Flaming or Trolling.
          6. No Profanity, Racism, or Prejudice.
          7. Site Moderators have the final word on approving / removing a thread or post or comment.
          8. English language posting only, please.

          Would you like to help us?

          Awesome! Simply post in the forums using the link below and we'll get you started.

          Get Involved