X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAuthCheck.py;h=0a4c26012e225e07df84ae172a1eb5b90bdcf241;hb=6bef7b35eec76ff66332cb20f58eb7703c2116f9;hp=09b2f9bedb4c1b9423519e0392a2017962afc64b;hpb=7e7751b60ad5379a11bb78e571bad3df9f5eb02f;p=plcapi.git diff --git a/PLC/Methods/AuthCheck.py b/PLC/Methods/AuthCheck.py index 09b2f9b..0a4c260 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 = [Auth()] returns = Parameter(int, '1 if successful') def call(self, auth):