summaryrefslogtreecommitdiff
path: root/lib/chessh/auth
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-22 15:27:55 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-22 15:27:55 -0700
commitf7c2ccbe26dc808e4a7eae9a378e6c382220961a (patch)
tree2c5e6074937d9887aabf31c8bbfa4427fd8719a5 /lib/chessh/auth
parentfed5d8a9e7b9500d317f2d8664cfe8ef4138154e (diff)
downloadchessh-f7c2ccbe26dc808e4a7eae9a378e6c382220961a.tar.gz
chessh-f7c2ccbe26dc808e4a7eae9a378e6c382220961a.zip
Remove shell and esshd - moving to erlang ssh server
Diffstat (limited to 'lib/chessh/auth')
-rw-r--r--lib/chessh/auth/keys.ex1
-rw-r--r--lib/chessh/auth/password.ex1
2 files changed, 0 insertions, 2 deletions
diff --git a/lib/chessh/auth/keys.ex b/lib/chessh/auth/keys.ex
index e90f101..a29d169 100644
--- a/lib/chessh/auth/keys.ex
+++ b/lib/chessh/auth/keys.ex
@@ -1,6 +1,5 @@
defmodule Chessh.Auth.KeyAuthenticator do
alias Chessh.{Key, Repo}
- use Sshd.PublicKeyAuthenticator
import Ecto.Query
def authenticate(username, public_key) do
diff --git a/lib/chessh/auth/password.ex b/lib/chessh/auth/password.ex
index e2c26d6..8a6c683 100644
--- a/lib/chessh/auth/password.ex
+++ b/lib/chessh/auth/password.ex
@@ -1,7 +1,6 @@
defmodule Chessh.Auth.PasswordAuthenticator do
alias Chessh.Player
alias Chessh.Repo
- use Sshd.PasswordAuthenticator
def authenticate(username, password) do
case Repo.get_by(Player, username: String.Chars.to_string(username)) do