CHANGE: user login style

This commit is contained in:
2025-02-21 20:44:35 +01:00
parent f6e77bda66
commit 3be2a47c56
8 changed files with 122 additions and 30 deletions

View File

@@ -10,6 +10,7 @@ import (
"net/http"
"time"
"github.com/joho/godotenv"
_ "github.com/lib/pq"
)
@@ -17,6 +18,12 @@ import (
func main() {
var err error
err = godotenv.Load(".env")
if err != nil {
log.Println("No .env file found in directory!")
}
models.DB, err = OpenDatabase()
if err != nil {
log.Fatal(err)