Ejemplo n.º 1
0
 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)))
Ejemplo n.º 2
0
 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)))
Ejemplo n.º 3
0
 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")
Ejemplo n.º 4
0
 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')