Added basic login functionality to login form

This commit is contained in:
2025-02-08 15:29:17 +11:00
parent 5a93ef81dd
commit 1004dc9563
9 changed files with 138 additions and 7 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"embed"
"fmt"
"github.com/joho/godotenv"
"io"
"net"
"net/http"
@@ -57,6 +58,10 @@ func run(ctx context.Context, w io.Writer) error {
var static embed.FS
func main() {
err := godotenv.Load(".env")
if err != nil {
panic(err.Error())
}
ctx := context.Background()
if err := run(ctx, os.Stdout); err != nil {
fmt.Fprintf(os.Stderr, "%s\n", err)