def login(request): # check for token from nctu oauth redirection if OAuth.get_profile(request) == None: return oauthWrapper.authorize() return redirect('/')