def logout(self, targetURL=h.encodeURL("/")): "Logout" # If the person is logged in, if h.isPerson(): del session["minutesOffset"] del session["personID"] del session["nickname"] session.save() # Redirect return redirect(url(h.decodeURL(targetURL)))
def logout(self, targetURL=h.encodeURL('/')): 'Logout' # If the person is logged in, if h.isPerson(): del session['minutesOffset'] del session['personID'] del session['nickname'] session.save() # Redirect return redirect(url(h.decodeURL(targetURL)))
def login(self, targetURL=h.encodeURL("/")): "Show login form" c.messageCode = request.GET.get("messageCode") c.targetURL = h.decodeURL(targetURL) c.publicKey = config["safe"]["recaptcha"]["public"] return render("/people/login.mako")
def login(self, targetURL=h.encodeURL('/')): 'Show login form' c.messageCode = request.GET.get('messageCode') c.targetURL = h.decodeURL(targetURL) c.publicKey = config['safe']['recaptcha']['public'] return render('/people/login.mako')