Skip to content

Commit

Permalink
auth_password/2 now uses send_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
lattenwald committed Oct 12, 2018
1 parent d4759f1 commit b966b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tdlib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ auth_code(Pid, Code, FirstName, LastName) ->
%% @param Password should be binary.
%%====================================================================
auth_password(Pid, Password) when is_binary(Password) ->
gen_server:cast(Pid, {auth_password, Password}).

Request = method(<<"checkAuthenticationPassword">>, [{<<"password">>, Password}]),
send_sync(Pid, Request).


%%====================================================================
Expand Down

0 comments on commit b966b11

Please sign in to comment.