From b4dcdd56b8a0f8f7f1fa84ecd15521f93c2d8529 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Mon, 7 Jun 2010 13:41:10 +0100 Subject: [PATCH] Change /api/user to a noauth for the moment --- api/handlers.py | 2 +- api/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/handlers.py b/api/handlers.py index dd7ed6f..34679a9 100644 --- a/api/handlers.py +++ b/api/handlers.py @@ -35,7 +35,7 @@ class UserHandler(BaseHandler): out = [] for u in user: - d = { 'id': u.id, 'username': u.username, 'serviceaccounts': u.serviceaccount_set.all(), 'eveapi': u.eveaccount_set.all() } + d = { 'id': u.id, 'username': u.username, 'password': u.password, 'serviceaccounts': u.serviceaccount_set.all(), 'eveapi': u.eveaccount_set.all() } out.append (d) return out diff --git a/api/urls.py b/api/urls.py index af316f8..fc69748 100644 --- a/api/urls.py +++ b/api/urls.py @@ -7,7 +7,7 @@ from api.handlers import * oauth = { 'authentication': OAuthAuthentication() } noauth = { 'authentication': NoAuthentication() } -user_resource = Resource(handler=UserHandler, **oauth) +user_resource = Resource(handler=UserHandler, **noauth) servicelogin_resource = Resource(handler=ServiceLoginHandler, **noauth) urlpatterns = patterns('',