diff --git a/lib/chessh/auth/password.ex b/lib/chessh/auth/password.ex index a01291d..0986169 100644 --- a/lib/chessh/auth/password.ex +++ b/lib/chessh/auth/password.ex @@ -8,7 +8,6 @@ defmodule Chessh.Auth.PasswordAuthenticator do def authenticate(username, password) do case Repo.get_by(Player, username: username) do player -> authenticate(player, password) - nil -> false end end end diff --git a/lib/chessh/ssh/cli.ex b/lib/chessh/ssh/cli.ex index c7befe0..71d789b 100644 --- a/lib/chessh/ssh/cli.ex +++ b/lib/chessh/ssh/cli.ex @@ -1,7 +1,7 @@ defmodule Chessh.SSH.Cli do @behaviour :ssh_server_channel - def init() do + def init(_args) do {:ok, %{}} end diff --git a/lib/chessh/ssh/daemon.ex b/lib/chessh/ssh/daemon.ex index 9ffc538..b341833 100644 --- a/lib/chessh/ssh/daemon.ex +++ b/lib/chessh/ssh/daemon.ex @@ -1,5 +1,5 @@ defmodule Chessh.SSH.Daemon do - alias Chessh.{Repo, PlayerSession, Player, Utils} + alias Chessh.{Repo, PlayerSession, Utils} alias Chessh.Auth.PasswordAuthenticator use GenServer import Ecto.Query