Devise force logout for some users from Rails App

33 views
Skip to first unread message

Errfan Wadia

unread,
Feb 4, 2017, 3:08:02 AM2/4/17
to Ruby on Rails: Talk

Is it possible to force logout for SOME of the users through Devise.

In my setup, I am using rails 4.1.15 with Devise 1.5.4. Sessions are persisted in db and there is no direct mapping with user ids. Is there a Devise way to logout against some of the users NOT ALL.

I tried resetting password as a proxy which logs out immediately but not always.


user_obj.update_attributes(:password => "some_random_string")
Reply all
Reply to author
Forward
0 new messages