From 872d2ade2326856be491b2704dae584a798309f2 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Sat, 4 Mar 2023 00:22:37 +0000 Subject: [PATCH] oops --- cmd/createkeyfile/main.go | 4 ++-- cmd/welcome/main.go | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmd/createkeyfile/main.go b/cmd/createkeyfile/main.go index 8f2f400..f3942bd 100644 --- a/cmd/createkeyfile/main.go +++ b/cmd/createkeyfile/main.go @@ -53,9 +53,9 @@ func main() { quit(err.Error()) } - _, err = os.Open(keyfileName) + _, err = os.Open(keyfilePath) if err == nil { - quit(fmt.Sprintf("%s already exists", keyfileName)) + quit(fmt.Sprintf("%s already exists", keyfilePath)) } f, err := os.Create(keyfilePath) diff --git a/cmd/welcome/main.go b/cmd/welcome/main.go index 33060c7..a4f44b4 100644 --- a/cmd/welcome/main.go +++ b/cmd/welcome/main.go @@ -257,7 +257,8 @@ Your invite code has not been marked as used and you're welcome to try again, th return nil } - // TODO assuming account creation succeeded, mark invite as used + // TODO mark invite as used + // TODO add user to town.db return nil }