mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Use const AppServiceDeviceID
This commit is contained in:
parent
ade99807cf
commit
2a2a4396ec
1 changed files with 2 additions and 1 deletions
|
@ -24,6 +24,7 @@ import (
|
|||
"net/http"
|
||||
"strings"
|
||||
|
||||
"github.com/matrix-org/dendrite/appservice/types"
|
||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||
|
@ -106,7 +107,7 @@ func VerifyUserFromRequest(
|
|||
// Create a dummy device for AS user
|
||||
dev := authtypes.Device{
|
||||
// Use AS dummy device ID
|
||||
ID: "AS_Device",
|
||||
ID: types.AppServiceDeviceID,
|
||||
// User the AS is masquerading as.
|
||||
UserID: userID,
|
||||
// AS dummy device has AS's token.
|
||||
|
|
Loading…
Reference in a new issue