Erlang ssh server #2 #2

Merged
Simponic merged 5 commits from erlang_ssh_server into main 2022-12-30 07:53:16 -05:00
3 changed files with 2 additions and 3 deletions
Showing only changes of commit e7d8c61487 - Show all commits

View File

@ -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

View File

@ -1,7 +1,7 @@
defmodule Chessh.SSH.Cli do
@behaviour :ssh_server_channel
def init() do
def init(_args) do
{:ok, %{}}
end

View File

@ -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