parent
a26759bb7b
commit
1a5c9d84b0
2 changed files with 2 additions and 2 deletions
|
@ -459,7 +459,7 @@ def create_room(channel, user):
|
||||||
def new_matrix_user(username):
|
def new_matrix_user(username):
|
||||||
matrix_api = MatrixHttpApi(app.config['MATRIX_HOST'],
|
matrix_api = MatrixHttpApi(app.config['MATRIX_HOST'],
|
||||||
token=app.config['MATRIX_AS_TOKEN'])
|
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:
|
try:
|
||||||
matrix_api.register(content=data)
|
matrix_api.register(content=data)
|
||||||
|
|
||||||
|
|
|
@ -264,7 +264,7 @@ def new_matrix_user(username):
|
||||||
token=config['MATRIX_AS_TOKEN'])
|
token=config['MATRIX_AS_TOKEN'])
|
||||||
data = {
|
data = {
|
||||||
'type': 'm.login.application_service',
|
'type': 'm.login.application_service',
|
||||||
'user': config['MATRIX_PNUT_PREFIX'] + username
|
'username': config['MATRIX_PNUT_PREFIX'] + username
|
||||||
}
|
}
|
||||||
matrix_api.register(content=data)
|
matrix_api.register(content=data)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue