mirror of
https://github.com/element-hq/dendrite.git
synced 2025-03-14 14:15:35 +00: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.
|
||||
if tc.wantOK {
|
||||
if !tc.wantOK {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ type UserVerifierProvider struct {
|
|||
}
|
||||
|
||||
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 {
|
||||
|
|
|
@ -32,7 +32,7 @@ type UserInternalAPI interface {
|
|||
|
||||
QuerySearchProfilesAPI // used by p2p demos
|
||||
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
|
||||
|
@ -667,6 +667,7 @@ type QueryAccountByLocalpartRequest struct {
|
|||
type QueryAccountByLocalpartResponse struct {
|
||||
Account *Account
|
||||
}
|
||||
|
||||
// API functions required by the clientapi
|
||||
type ClientKeyAPI interface {
|
||||
UploadDeviceKeysAPI
|
||||
|
|
Loading…
Add table
Reference in a new issue