def recover_pwd(token): res = ops.verifyLogin(request.cookies.email, request.cookies.sessionkey) if res["loggedin"]: return redirect("/") valid = ops.verifyToken(token, "recovery") return template( "recoverpwd.tpl", **{ "siteconfig": siteconfig, "redirectUrl": "/", "token": token, "tokenValid": valid })
def create_account(token): res = ops.verifyLogin(request.cookies.email, request.cookies.sessionkey) if res["loggedin"]: return redirect("/") valid = ops.verifyToken(token, "register") return template( "createaccount.tpl", **{ "siteconfig": siteconfig, "redirectUrl": "/", "token": token, "tokenValid": valid })