mirror of
https://github.com/element-hq/dendrite.git
synced 2025-09-13 21:02:25 +03:00
msc3861: ++
This commit is contained in:
parent
fd52c7eb1f
commit
ff2ba0313a
3 changed files with 4 additions and 3 deletions
|
@ -1562,7 +1562,7 @@ func TestAdminCheckUsernameAvailable(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Nothing more to check, test is done.
|
// Nothing more to check, test is done.
|
||||||
if tc.wantOK {
|
if !tc.wantOK {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ type UserVerifierProvider struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (u *UserVerifierProvider) VerifyUserFromRequest(req *http.Request) (*userapi.Device, *util.JSONResponse) {
|
func (u *UserVerifierProvider) VerifyUserFromRequest(req *http.Request) (*userapi.Device, *util.JSONResponse) {
|
||||||
return u.VerifyUserFromRequest(req)
|
return u.UserVerifier.VerifyUserFromRequest(req)
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewUserVerifierProvider(userVerifier httputil.UserVerifier) *UserVerifierProvider {
|
func NewUserVerifierProvider(userVerifier httputil.UserVerifier) *UserVerifierProvider {
|
||||||
|
|
|
@ -32,7 +32,7 @@ type UserInternalAPI interface {
|
||||||
|
|
||||||
QuerySearchProfilesAPI // used by p2p demos
|
QuerySearchProfilesAPI // used by p2p demos
|
||||||
QueryExternalUserIDByLocalpartAndProvider(ctx context.Context, externalID, authProvider string) (*LocalpartExternalID, error)
|
QueryExternalUserIDByLocalpartAndProvider(ctx context.Context, externalID, authProvider string) (*LocalpartExternalID, error)
|
||||||
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) (error)
|
PerformLocalpartExternalUserIDCreation(ctx context.Context, localpart, externalID, authProvider string) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// api functions required by the appservice api
|
// api functions required by the appservice api
|
||||||
|
@ -667,6 +667,7 @@ type QueryAccountByLocalpartRequest struct {
|
||||||
type QueryAccountByLocalpartResponse struct {
|
type QueryAccountByLocalpartResponse struct {
|
||||||
Account *Account
|
Account *Account
|
||||||
}
|
}
|
||||||
|
|
||||||
// API functions required by the clientapi
|
// API functions required by the clientapi
|
||||||
type ClientKeyAPI interface {
|
type ClientKeyAPI interface {
|
||||||
UploadDeviceKeysAPI
|
UploadDeviceKeysAPI
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue