X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FMethods%2FAddKeyType.py;h=329654ff26f96b7df546fc83c0235c07abf049f8;hb=1f8c38dd1357c93e4be8d94456b7274a591d2db4;hp=914323c326e05d1fb4700d90369ca5911d2981d2;hpb=8a487f290fe09f77b4e1c1bf7ddb38a5ab4832e6;p=plcapi.git diff --git a/PLC/Methods/AddKeyType.py b/PLC/Methods/AddKeyType.py index 914323c..329654f 100644 --- a/PLC/Methods/AddKeyType.py +++ b/PLC/Methods/AddKeyType.py @@ -2,7 +2,7 @@ from PLC.Faults import * from PLC.Method import Method from PLC.Parameter import Parameter, Mixed from PLC.KeyTypes import KeyType, KeyTypes -from PLC.Auth import PasswordAuth +from PLC.Auth import Auth class AddKeyType(Method): """ @@ -14,7 +14,7 @@ class AddKeyType(Method): roles = ['admin'] accepts = [ - PasswordAuth(), + Auth(), KeyType.fields['key_type'] ]