Skip to content

Instantly share code, notes, and snippets.

@blackode
Created February 14, 2017 10:34
Show Gist options
  • Save blackode/1f03cc2f9cbe60096a1a98c346a9abb7 to your computer and use it in GitHub Desktop.
Save blackode/1f03cc2f9cbe60096a1a98c346a9abb7 to your computer and use it in GitHub Desktop.
unlock and reset definition
@doc """
Unlocks the given password
"""
def unlock(server_pid, password) do
GenServer.call(server_pid, {:unlock, password})
end
@doc """
resets the given password
"""
def reset(server_pid, {old_password,new_password}) do
GenServer.call(server_pid, {:reset, {old_password,new_password}})
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment