Revert "Switch to token auth for Zammad"

This reverts commit 7fef65b66b.
This commit is contained in:
Michal Čihař 2020-08-18 10:46:41 +02:00
parent 7fef65b66b
commit af7d142da1

View file

@ -27,7 +27,9 @@ class Tag(Resource):
TEMPLATE = """{ TEMPLATE = """{
"zammad_host": "", "zammad_host": "",
"zammad_token": "", "zammad_user": "",
"zammad_password": "",
"zammad_secure": true,
"rt_url": "", "rt_url": "",
"rt_user": "", "rt_user": "",
"rt_pass": "" "rt_pass": ""
@ -55,7 +57,9 @@ with open("rt2zammad.json") as handle:
def get_zammad(**kwargs): def get_zammad(**kwargs):
return ZammadAPI( return ZammadAPI(
host=config["zammad_host"], host=config["zammad_host"],
http_token=config["zammad_token"], username=config["zammad_user"],
password=config["zammad_password"],
is_secure=config["zammad_secure"],
**kwargs **kwargs
) )