Is there a way to force password changes to the users that do not meet our new password requirements?
Thanks
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 <code>UpdatePassword</code> column value in the <code>Users</code> table from <code>0</code> to <code>1</code> to trigger a password reset the next time someone attempts to log in.
<code>UPDATE [Users] <br /> SET [UpdatePassword] = 1 <br /> WHERE IsSuperUser = 0;</code>
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 <code>UserPortals</code> table, by security role (group) using the <code>Roles</code> table, etc.
You can run this all from the SQL Console, without having to log into the database directly.
Thanks everyone, that's what I thought.
Doing an update on the UpdatePassword = 1
These Forums are for the discussion of the open source CMS DNN platform and ecosystem.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.