fix: use client secret field for providers (#2355)

* feat: fix key exposure problem

* fix display bug
This commit is contained in:
UsherFall
2023-09-24 18:35:58 +08:00
committed by GitHub
parent b94d06fb07
commit aab6a799fe
5 changed files with 45 additions and 36 deletions

View File

@ -21,7 +21,7 @@ import (
"maunium.net/go/mautrix/id"
)
func NewMatrixProvider(userId string, roomId string, accessToken string, homeServer string) (*notify.Notify, error) {
func NewMatrixProvider(userId string, accessToken string, roomId string, homeServer string) (*notify.Notify, error) {
matrixSrv, err := matrix.New(id.UserID(userId), id.RoomID(roomId), homeServer, accessToken)
if err != nil {
return nil, err