Skip to content
Snippets Groups Projects
Commit b0788854 authored by Eugen Rochko's avatar Eugen Rochko
Browse files

Catch :warden correctly

parent feda1e65
No related branches found
No related tags found
No related merge requests found
......@@ -9,14 +9,11 @@ module ApplicationCable
protected
def find_verified_user
verified_user = env['warden'].user
if verified_user
verified_user
else
reject_unauthorized_connection
catch :warden do
verified_user = env['warden'].user
return verified_user if verified_user
end
rescue :warden
reject_unauthorized_connection
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment