示例#1
0
文件: auth.py 项目: dyno/doorkeeper
 def logout(self):
     session.clear()
     session.save()
     return render('/login.mako')
示例#2
0
文件: auth.py 项目: dyno/doorkeeper
 def display(self):
     if not session.get("user"):
         return render('/login.mako')
     else:
         return render('/main.mako')
示例#3
0
 def logout(self):
     session.clear()
     session.save()
     return render('/login.mako')
示例#4
0
 def display(self):
     if not session.get("user"):
         return render('/login.mako')
     else:
         return render('/main.mako')
示例#5
0
 def index(self):
     if not session.get("user"):
         return render("/login.mako")
     else:
         return render("/main.mako")
示例#6
0
文件: main.py 项目: dyno/doorkeeper
 def index(self):
     if not session.get("user"):
         return render("/login.mako")
     else:
         return render("/main.mako")