From 01e0c664ca9c066284c5219bf43c795477944f2a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 27 Oct 2006 15:34:43 +0000 Subject: [PATCH] - also accept SessionAuth --- PLC/Methods/AuthCheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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): -- 2.47.0