mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-20 10:43:40 +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"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/matrix-org/dendrite/appservice/types"
|
||||||
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
"github.com/matrix-org/dendrite/clientapi/auth/authtypes"
|
||||||
"github.com/matrix-org/dendrite/clientapi/httputil"
|
"github.com/matrix-org/dendrite/clientapi/httputil"
|
||||||
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
"github.com/matrix-org/dendrite/clientapi/jsonerror"
|
||||||
|
@ -106,7 +107,7 @@ func VerifyUserFromRequest(
|
||||||
// Create a dummy device for AS user
|
// Create a dummy device for AS user
|
||||||
dev := authtypes.Device{
|
dev := authtypes.Device{
|
||||||
// Use AS dummy device ID
|
// Use AS dummy device ID
|
||||||
ID: "AS_Device",
|
ID: types.AppServiceDeviceID,
|
||||||
// User the AS is masquerading as.
|
// User the AS is masquerading as.
|
||||||
UserID: userID,
|
UserID: userID,
|
||||||
// AS dummy device has AS's token.
|
// AS dummy device has AS's token.
|
||||||
|
|
Loading…
Reference in a new issue