How to devise destroy session and sign out from controller?

前端 未结 4 1450
无人及你
无人及你 2021-02-13 01:44

Devise destroy session and sign out from controller?

if something_is_not_kosher
  # 1. log this event, 2. send notice
  redirect_to destroy_user_session_path and         


        
4条回答
  •  甜味超标
    2021-02-13 02:27

    Why don't you just use devise's built-in sign_out_and_redirect(current_user) method?

提交回复
热议问题