mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 19:55:56 +08:00
FIX actioncable job
This commit is contained in:
@@ -9,8 +9,9 @@ module ApplicationCable
|
||||
|
||||
private
|
||||
def find_verified_user
|
||||
puts "############### cookies.signed[:signed_user_id]: #{cookies.signed[:user_id]}"
|
||||
puts "############### cookies.signed[:user_id]: #{cookies.signed[:user_id]}"
|
||||
if current_user = User.find_by(id: cookies.signed[:user_id])
|
||||
puts "############### find_verified_user success! ###############"
|
||||
current_user
|
||||
else
|
||||
reject_unauthorized_connection
|
||||
|
||||
Reference in New Issue
Block a user