fixes
This commit is contained in:
parent
e6359db97d
commit
9d79811415
6
main
6
main
|
@ -449,7 +449,7 @@ async def post():
|
||||||
user = get_user(userCookie["id"])
|
user = get_user(userCookie["id"])
|
||||||
return await render_template("post.html", userdata=user)
|
return await render_template("post.html", userdata=user)
|
||||||
else:
|
else:
|
||||||
flash("A burgercat account is required to post :3")
|
await flash("A burgercat account is required to post :3")
|
||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
|
|
||||||
|
@ -564,11 +564,11 @@ async def login():
|
||||||
user = get_user(userID)
|
user = get_user(userID)
|
||||||
|
|
||||||
if user == "error":
|
if user == "error":
|
||||||
flash("Wrong username or password :3")
|
await flash("Wrong username or password :3")
|
||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
if not check_password_hash(user["password"], (requestData["password"])):
|
if not check_password_hash(user["password"], (requestData["password"])):
|
||||||
flash("Wrong username or password :3")
|
await flash("Wrong username or password :3")
|
||||||
return redirect(url_for("login"))
|
return redirect(url_for("login"))
|
||||||
|
|
||||||
randomCharacters = secrets.token_hex(512)
|
randomCharacters = secrets.token_hex(512)
|
||||||
|
|
Reference in New Issue