def GET(self): template = jj2env.get_template('index.html') # check '_id' in the cookie to see if the user already sign in if web.cookies().get('_id'): # user already sign in, retrieve user profile profile = json.loads( web.cookies().get('_profile') ) return template.render({ 'profile': profile }) else: # user not sing in return template.render()
def GET(self): template = jj2env.get_template('login.html') return template.render()