Get users to accept new privacy policy


(Adam Carter) #1

Is it possible to block/suspend users or prevent them from logging in until they accept a new privacy policy, in effect putting them back in the state they were in as they were creating an account but without resetting their levels of trust or their previous posts?

I’ve looked through the admin settings, but I cannot see how to do this. Apologies if I’ve missed something.

Thanks!


(Jay Pfaffman) #2

You might check out the custom wizard plugin


(Jeff Atwood) #3

You could deactivate all accounts, this would force them to re-validate their email addresses before they could log in again.


(Jay Pfaffman) #4

That could be a good solution.

Here’s a way to do that:

  def deactivate_all_users
    User.where("id > 0 and admin != true").update_all(active: false)
  end