summaryrefslogtreecommitdiff
path: root/lib/chessh/ssh/server_key.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chessh/ssh/server_key.ex')
-rw-r--r--lib/chessh/ssh/server_key.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chessh/ssh/server_key.ex b/lib/chessh/ssh/server_key.ex
index 5252624..eae9577 100644
--- a/lib/chessh/ssh/server_key.ex
+++ b/lib/chessh/ssh/server_key.ex
@@ -5,9 +5,9 @@ defmodule Chessh.SSH.ServerKey do
@behaviour :ssh_server_key_api
def is_auth_key(key, username, _daemon_options) do
- PlayerSession.player_within_concurrent_sessions_and_satisfies(
+ PlayerSession.update_sessions_and_player_satisfies(
username,
- &KeyAuthenticator.authenticate(&1, key)
+ fn player -> KeyAuthenticator.authenticate(player, key) end
)
end