|
|
@ -9,14 +9,11 @@ module ApplicationCable |
|
|
|
protected |
|
|
|
protected |
|
|
|
|
|
|
|
|
|
|
|
def find_verified_user |
|
|
|
def find_verified_user |
|
|
|
verified_user = env['warden'].user |
|
|
|
catch :warden do |
|
|
|
|
|
|
|
verified_user = env['warden'].user |
|
|
|
if verified_user |
|
|
|
return verified_user if verified_user |
|
|
|
verified_user |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
reject_unauthorized_connection |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
rescue :warden |
|
|
|
|
|
|
|
reject_unauthorized_connection |
|
|
|
reject_unauthorized_connection |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|