示例#1
0
def modifyacct_route(rdb):
    logged_in = account.isLoggedIn()
    if logged_in:
        info = account.getUserInfo(rdb)
        return template('modifyacct.tpl', get_url=url, logged_in=logged_in, acct=info)
    else:
        redirect('/login')
示例#2
0
def myacct_route(rdb):
    logged_in = account.isLoggedIn()
    if logged_in:
        acct = account.getUserInfo(rdb)
        acct.append(request.get_cookie('account', secret='pass'))
        return template('myaccount.tpl', get_url=url, logged_in=logged_in, acct=acct)
    else:
        redirect('/login')