More warning squashing
This commit is contained in:
parent
9add1557b3
commit
e7d8c61487
@ -8,7 +8,6 @@ defmodule Chessh.Auth.PasswordAuthenticator do
|
|||||||
def authenticate(username, password) do
|
def authenticate(username, password) do
|
||||||
case Repo.get_by(Player, username: username) do
|
case Repo.get_by(Player, username: username) do
|
||||||
player -> authenticate(player, password)
|
player -> authenticate(player, password)
|
||||||
nil -> false
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
defmodule Chessh.SSH.Cli do
|
defmodule Chessh.SSH.Cli do
|
||||||
@behaviour :ssh_server_channel
|
@behaviour :ssh_server_channel
|
||||||
|
|
||||||
def init() do
|
def init(_args) do
|
||||||
{:ok, %{}}
|
{:ok, %{}}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
defmodule Chessh.SSH.Daemon do
|
defmodule Chessh.SSH.Daemon do
|
||||||
alias Chessh.{Repo, PlayerSession, Player, Utils}
|
alias Chessh.{Repo, PlayerSession, Utils}
|
||||||
alias Chessh.Auth.PasswordAuthenticator
|
alias Chessh.Auth.PasswordAuthenticator
|
||||||
use GenServer
|
use GenServer
|
||||||
import Ecto.Query
|
import Ecto.Query
|
||||||
|
Loading…
Reference in New Issue
Block a user