git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
461093b
)
- also accept SessionAuth
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 27 Oct 2006 15:34:43 +0000
(15:34 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 27 Oct 2006 15:34:43 +0000
(15:34 +0000)
PLC/Methods/AuthCheck.py
patch
|
blob
|
history
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.Auth import
Password
Auth, 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(
Password
Auth(), BootAuth())]
+ roles = ['admin', 'pi', 'user', 'tech'
, 'node'
]
+ accepts = [Mixed(Auth(), BootAuth())]
returns = Parameter(int, '1 if successful')
def call(self, auth):