diff --git a/dudeswave/src/dudeswave_user_handler.erl b/dudeswave/src/dudeswave_user_handler.erl index 257b248..6d7be85 100644 --- a/dudeswave/src/dudeswave_user_handler.erl +++ b/dudeswave/src/dudeswave_user_handler.erl @@ -148,7 +148,7 @@ forbidden(Req, State) -> #{dudeauth := Auth, dudename := User} = cowboy_req:match_cookies([dudeauth, dudename], Req), - case dudeswave_auth:authenticate(User, Auth) of + case dudeswave_auth:authenticate(User, {cookie, Auth}) of {error, service_unavailable} -> {true, Req, State}; true ->