git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- import Faults
[plcapi.git]
/
PLC
/
Methods
/
AuthCheck.py
diff --git
a/PLC/Methods/AuthCheck.py
b/PLC/Methods/AuthCheck.py
index
09b2f9b
..
88b57ae
100644
(file)
--- 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.Method import Method
from PLC.Parameter import Parameter, Mixed
-from PLC.Auth import
Password
Auth, BootAuth
+from PLC.Auth import Auth, BootAuth
class AuthCheck(Method):
"""
class AuthCheck(Method):
"""
@@
-8,8
+8,8
@@
class AuthCheck(Method):
otherwise.
"""
otherwise.
"""
- roles = ['admin', 'pi', 'user', 'tech']
- accepts = [Mixed(
Password
Auth(), BootAuth())]
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
+ accepts = [Mixed(Auth(), BootAuth())]
returns = Parameter(int, '1 if successful')
def call(self, auth):
returns = Parameter(int, '1 if successful')
def call(self, auth):