From 95c4af02f07f8a0f2ec3cf620d89741db6f00746 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Fri, 16 Jun 2023 01:28:10 +0200 Subject: [PATCH] Small contribution. --- makefile | 2 +- src/client.cr | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/makefile b/makefile index c1c4dc6..7d30a0e 100644 --- a/makefile +++ b/makefile @@ -21,7 +21,7 @@ setup: DATA_DIRECTORY ?= /tmp/DATA-AUTHD run-authd: setup - ./bin/authd -k /tmp/PASSWORD -R -E --storage $(DATA_DIRECTORY) + ./bin/authd -k $(PASSWORD_FILE) -R -E --storage $(DATA_DIRECTORY) # First user always is the admin. add-first-user: diff --git a/src/client.cr b/src/client.cr index ee4b008..58abf87 100644 --- a/src/client.cr +++ b/src/client.cr @@ -163,8 +163,6 @@ class Actions email = Context.email - # TODO: login. - Baguette::Log.error "This function shouldn't be used for now." Baguette::Log.error "It is way too cumbersome." @@ -176,9 +174,6 @@ class Actions args = Context.args.not_nil! userid = args[0].to_i - # Context.authd_login, Context.authd_pass - # TODO: login. - res = authd.delete userid puts res