def is_logged_in():
	logged_in = "uid" in session
	if logged_in and not api.user.get_user(uid=session["uid"]):
		logout()
		return False
	return logged_in
dataset/ETHPy150Open EasyCTF/easyctf-2015/api/api/auth.py/is_logged_in/original