Corrected call to authenticate.
parent
29cb046e3d
commit
a0cbc962d1
|
@ -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 ->
|
||||
|
|
Loading…
Reference in New Issue