Merge pull request 'harsh' (#10) from harsh into main

Reviewed-on: #10
This commit is contained in:
cereci5049 2024-08-05 14:17:46 +02:00
commit d940f243a1
4 changed files with 9 additions and 0 deletions

BIN
src/db/db_up.exe Normal file

Binary file not shown.

BIN
src/hh1

Binary file not shown.

BIN
src/hh1.exe Normal file

Binary file not shown.

View file

@ -43,6 +43,15 @@ import
"/:path" -> get:
compileTemplateFile(getScriptDir() / "view" / "404.nimja")
"/login"-> post:
var em =ctx.urlForm["email"]
var ps=ctx.urlForm["password"]
let conn=newTurso()
var temp=getUser(conn,em,ps)
if temp[0]:
ctx.redirect("/")
else:
echo "user not found"
servePublic("src/public", "/static")