Created
February 14, 2017 10:34
-
-
Save blackode/1f03cc2f9cbe60096a1a98c346a9abb7 to your computer and use it in GitHub Desktop.
unlock and reset definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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