12th Commit

This commit is contained in:
Aritra Banik 2024-02-05 00:25:13 +05:30
parent 0ce8b37eb9
commit b1bd56841b
2 changed files with 3 additions and 0 deletions

BIN
src/a3

Binary file not shown.

View File

@ -12,6 +12,7 @@ import
email: string
password: string
products: seq[Products]
# echo ctx.cookies["email"]
try:
email = ctx.cookies["email"]
@ -232,11 +233,13 @@ import
loginError = ""
emailError = ""
passwordError = ""
echo user
if user == true:
ctx &= initCookie("email", email)
ctx &= initCookie("password", password)
echo ctx.cookies
ctx.redirect("/")