示例#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)))
示例#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)))
示例#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")
示例#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')