示例#1
0
 def admin():
     self.odesk_is_authorized = odesk.is_authorized()
     self.odesk_access_token = odesk.get_access_token()
     odesk.logout()
     self.odesk_is_not_authorized = odesk.is_authorized()
     return "Welcome, oDesk user!"
def is_authorized():
    if odesk.is_authorized():
        return "You are authorized!"
    else:
        return "Not authorized!"
示例#3
0
def index():
    if odesk.is_authorized():
        return redirect(url_for("options"))
    else:
        return render_template("index.html")