From 2881344489e48952c51d83d6e52aa72eec81a49f Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 9 Apr 2020 10:45:52 +0300 Subject: [PATCH] Fix incorrect parameter for generate_mac --- maubot/management/api/client_auth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/management/api/client_auth.py b/maubot/management/api/client_auth.py index 867867a..8a007f0 100644 --- a/maubot/management/api/client_auth.py +++ b/maubot/management/api/client_auth.py @@ -90,7 +90,7 @@ async def register(request: web.Request) -> web.Response: api, secret, username, password, user_type = info res = await api.request(Method.GET, Path.admin.register) nonce = res["nonce"] - mac = generate_mac(secret, nonce, username, password, user_type) + mac = generate_mac(secret, nonce, username, password, user_type=user_type) try: return web.json_response(await api.request(Method.POST, Path.admin.register, content={ "nonce": nonce,