From: Mark Huang Date: Fri, 27 Oct 2006 15:34:43 +0000 (+0000) Subject: - also accept SessionAuth X-Git-Tag: pycurl-7_13_1~434 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=01e0c664ca9c066284c5219bf43c795477944f2a;p=plcapi.git - also accept SessionAuth --- diff --git a/PLC/Methods/AuthCheck.py b/PLC/Methods/AuthCheck.py index 09b2f9be..88b57aea 100644 --- a/PLC/Methods/AuthCheck.py +++ b/PLC/Methods/AuthCheck.py @@ -1,6 +1,6 @@ from PLC.Method import Method from PLC.Parameter import Parameter, Mixed -from PLC.Auth import PasswordAuth, BootAuth +from PLC.Auth import Auth, BootAuth class AuthCheck(Method): """ @@ -8,8 +8,8 @@ class AuthCheck(Method): otherwise. """ - roles = ['admin', 'pi', 'user', 'tech'] - accepts = [Mixed(PasswordAuth(), BootAuth())] + roles = ['admin', 'pi', 'user', 'tech', 'node'] + accepts = [Mixed(Auth(), BootAuth())] returns = Parameter(int, '1 if successful') def call(self, auth):