13

Rails devise重置某个用户的所有sessions

 3 years ago
source link: http://blog.ilibrary.me/2019/07/22/rails-devise%E9%87%8D%E7%BD%AE%E6%9F%90%E4%B8%AA%E7%94%A8%E6%88%B7%E7%9A%84%E6%89%80%E6%9C%89sessions
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Rails devise重置某个用户的所有sessions
欢迎转载,请支持原创,保留原文链接:blog.ilibrary.me

Rails devise 如果需要重置某个人的session, 可以在console里面修改该用户密码来重置所有session, 因为devise用密码做salt.

u = User.find xxxx
u.password = "new_password"
u.save

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK