fix username parameter for /register endpoint

resolves #65
This commit is contained in:
Morgan McMillian 2023-07-04 09:31:18 -07:00
parent a26759bb7b
commit 1a5c9d84b0
2 changed files with 2 additions and 2 deletions

View file

@ -459,7 +459,7 @@ def create_room(channel, user):
def new_matrix_user(username):
matrix_api = MatrixHttpApi(app.config['MATRIX_HOST'],
token=app.config['MATRIX_AS_TOKEN'])
data = {'type': 'm.login.application_service','user': app.config['MATRIX_PNUT_PREFIX'] + username}
data = {'type': 'm.login.application_service','username': app.config['MATRIX_PNUT_PREFIX'] + username}
try:
matrix_api.register(content=data)

View file

@ -264,7 +264,7 @@ def new_matrix_user(username):
token=config['MATRIX_AS_TOKEN'])
data = {
'type': 'm.login.application_service',
'user': config['MATRIX_PNUT_PREFIX'] + username
'username': config['MATRIX_PNUT_PREFIX'] + username
}
matrix_api.register(content=data)