diff --git a/src/db/db_up.exe b/src/db/db_up.exe new file mode 100644 index 0000000..ca4de91 Binary files /dev/null and b/src/db/db_up.exe differ diff --git a/src/hh1 b/src/hh1 deleted file mode 100755 index 28f045f..0000000 Binary files a/src/hh1 and /dev/null differ diff --git a/src/hh1.exe b/src/hh1.exe new file mode 100644 index 0000000..b09469c Binary files /dev/null and b/src/hh1.exe differ diff --git a/src/hh1.nim b/src/hh1.nim index bccfdd9..33a5a99 100644 --- a/src/hh1.nim +++ b/src/hh1.nim @@ -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")