Permalink
Browse files

WHISTLE-42: fix password recovery api

  • Loading branch information...
1 parent a2f2702 commit 8aa7a6d2082fcc6d812fee926995a2d11dda4107 Jon Blanton committed Jul 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 whistle_apps/apps/crossbar/src/modules/cb_user_auth.erl
@@ -49,7 +49,7 @@ init() ->
-spec allowed_methods/1 :: (path_tokens()) -> http_methods().
allowed_methods() ->
['PUT'].
-allowed_methods([<<"recovery">>]) ->
+allowed_methods(<<"recovery">>) ->
['PUT'].
%%--------------------------------------------------------------------
@@ -83,7 +83,7 @@ authorize(_) ->
%% @end
%%--------------------------------------------------------------------
-spec authenticate/1 :: (#cb_context{}) -> boolean().
-authenticate(#cb_context{req_nouns=[{<<"user_auth">>, []}]}) ->
+authenticate(#cb_context{req_nouns=[{<<"user_auth">>, _}]}) ->
true;
authenticate(_) ->
false.

0 comments on commit 8aa7a6d

Please sign in to comment.