From 6343e590ebd6733e85ef2fad915b0a96c66dd2a0 Mon Sep 17 00:00:00 2001 From: cereci5049 Date: Wed, 7 Aug 2024 23:47:17 +0530 Subject: [PATCH] 029 --- hh1.nimble | 3 ++- src/hh1.nim | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hh1.nimble b/hh1.nimble index 26f0d60..8316f39 100644 --- a/hh1.nimble +++ b/hh1.nimble @@ -14,4 +14,5 @@ bin = @["hh1"] requires "nim >= 2.0.8" requires "https://github.com/ire4ever1190/mike" requires "nimja" -requires "https://codeberg.org/13thab/turso-nim" \ No newline at end of file +requires "https://codeberg.org/13thab/turso-nim" +requires "https://github.com/euantorano/dotenv.nim" \ No newline at end of file diff --git a/src/hh1.nim b/src/hh1.nim index 079f203..11bcd84 100644 --- a/src/hh1.nim +++ b/src/hh1.nim @@ -14,7 +14,6 @@ import echo(fmt"[mike] before request: {ctx.httpMethod} {path2}") "/" -> [get, post]: - let user = ctx[User] compileTemplateFile(getScriptDir() / "view" / "index.nimja") "/shop" -> get: @@ -44,7 +43,7 @@ import var em =ctx.urlForm["email"] var ps=ctx.urlForm["password"] let conn=newTurso() - var temp=getUser(conn,em,ps) + var temp=getUser(conn, em, ps) if temp[0]: ctx.redirect("/") else: