Merge pull request #46809 from ezh/2018.3-sharedsecret

Fix sharedsecret authentication
This commit is contained in:
Nicole Thomas 2018-04-03 12:53:24 -04:00 committed by GitHub
commit 4a358217a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')