12th Commit
This commit is contained in:
parent
0ce8b37eb9
commit
b1bd56841b
@ -12,6 +12,7 @@ import
|
|||||||
email: string
|
email: string
|
||||||
password: string
|
password: string
|
||||||
products: seq[Products]
|
products: seq[Products]
|
||||||
|
# echo ctx.cookies["email"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
email = ctx.cookies["email"]
|
email = ctx.cookies["email"]
|
||||||
@ -232,11 +233,13 @@ import
|
|||||||
loginError = ""
|
loginError = ""
|
||||||
emailError = ""
|
emailError = ""
|
||||||
passwordError = ""
|
passwordError = ""
|
||||||
|
echo user
|
||||||
|
|
||||||
if user == true:
|
if user == true:
|
||||||
|
|
||||||
ctx &= initCookie("email", email)
|
ctx &= initCookie("email", email)
|
||||||
ctx &= initCookie("password", password)
|
ctx &= initCookie("password", password)
|
||||||
|
echo ctx.cookies
|
||||||
|
|
||||||
ctx.redirect("/")
|
ctx.redirect("/")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user