From 36a18dea6c65859679ff55793dabb90aca949e7e Mon Sep 17 00:00:00 2001 From: Jono Date: Fri, 17 May 2024 23:01:57 -0700 Subject: [PATCH] Fix test. Add readme upload --- Makefile | 2 +- lib/auth.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 489c8cfd70..e923c5e5b0 100644 --- a/Makefile +++ b/Makefile @@ -11,8 +11,8 @@ docker-push: ## build, tag, and push image to dockerhub. presumes you are logge @echo "Building image $${image}" @docker buildx build . --platform linux/amd64 \ -t $${image} -f docker/Dockerfile --push + @docker pushrm --file docker/DOCKERHUB-README.md $${username}/cypht # TODO: build for arm architectures - # TODO: push docker/DOCKERHUB-README.md to dockerhub .PHONY: setup .ONESHELL: diff --git a/lib/auth.php b/lib/auth.php index 25a7565162..f6f8df346b 100644 --- a/lib/auth.php +++ b/lib/auth.php @@ -132,7 +132,7 @@ public function create($user, $pass) { $result = 0; $res = Hm_DB::execute($this->dbh, 'select username from hm_user where username = ?', [$user]); if (!empty($res)) { - error_log("user {$user} already exists\n"); + print("user {$user} already exists\n"); $result = 1; } else {