Fix sharedsecret authentication

This commit is contained in:
Alexey Aksenov 2018-04-01 23:40:48 +03:00 committed by Erik Johnson
parent e533b7182d
commit 71d5601507
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -37,8 +37,8 @@ import logging
log = logging.getLogger(__name__)
def auth(username, sharedsecret, **kwargs):
def auth(username, password):
'''
Shared secret authentication
'''
return sharedsecret == __opts__.get('sharedsecret')
return password == __opts__.get('sharedsecret')