mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-14 05:12:26 +03:00
deleted test cases TestDevices/sqlite/dupe_token
these testcases are irrelevant msc3861 because access tokens are supposed to come from mas and access_token field is not used at all
This commit is contained in:
parent
1afe2b90ea
commit
244021dc05
2 changed files with 2 additions and 11 deletions
|
@ -306,6 +306,8 @@ func (a *UserInternalAPI) PerformDeviceCreation(ctx context.Context, req *api.Pe
|
|||
"device_id": req.DeviceID,
|
||||
"display_name": req.DeviceDisplayName,
|
||||
}).Info("PerformDeviceCreation")
|
||||
// TODO: Since we have deleted access_token's unique constraint from the db,
|
||||
// we probably should check its uniqueness if msc3861 is disabled
|
||||
dev, err := a.DB.CreateDevice(ctx, req.Localpart, serverName, req.DeviceID, req.AccessToken, req.DeviceDisplayName, req.IPAddr, req.UserAgent)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue