webgo/logout.py

13 lines
No EOL
228 B
Python

import database
import login
def process_form(req,form):
username = form["username"]
myuser = database.Users.byUsername(username)
myuser.sessionid = None
login.main(req,form)
def main(req,form):
process_form(req,form)