Corrected call to authenticate.
parent
29cb046e3d
commit
a0cbc962d1
|
@ -148,7 +148,7 @@ forbidden(Req, State) ->
|
||||||
#{dudeauth := Auth, dudename := User} = cowboy_req:match_cookies([dudeauth,
|
#{dudeauth := Auth, dudename := User} = cowboy_req:match_cookies([dudeauth,
|
||||||
dudename], Req),
|
dudename], Req),
|
||||||
|
|
||||||
case dudeswave_auth:authenticate(User, Auth) of
|
case dudeswave_auth:authenticate(User, {cookie, Auth}) of
|
||||||
{error, service_unavailable} ->
|
{error, service_unavailable} ->
|
||||||
{true, Req, State};
|
{true, Req, State};
|
||||||
true ->
|
true ->
|
||||||
|
|
Loading…
Reference in New Issue