1 from PLC.Method import Method
2 from PLC.Parameter import Parameter, Mixed
3 from PLC.Auth import PasswordAuth
5 class AuthCheck(Method):
7 Returns 1 if the user authenticated successfully, faults
11 roles = ['admin', 'pi', 'user', 'tech']
12 accepts = [PasswordAuth()]
13 returns = Parameter(int, '1 if successful')