ChrisInCambo
ChrisInCambo

Reputation: 8795

Sign Out all Users With Clearance

We have an update coming for which we need all users to sign out and sign in again.

I've tried changing the key in session_store.rb but that doesn't work. We are using Clearance for authentication, so was wondering if there is a way to end all current sessions with clearance forcing everyone to sign-in again?

Upvotes: 1

Views: 209

Answers (1)

Shevaun
Shevaun

Reputation: 1228

Typing this in your production console will do it:

User.all.each { |u| u.reset_remember_token! }

Upvotes: 1

Related Questions