aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTill <2353100+S7evinK@users.noreply.github.com>2022-12-22 11:54:03 +0100
committerGitHub <noreply@github.com>2022-12-22 11:54:03 +0100
commitd1d2d16738a248846ea4367fe2b33485d56db6cd (patch)
tree32045e75867a11e24045890ac20fba8c62515fb2 /test
parentbeea2432e6144a98370138f8d3f6334c19a044bb (diff)
Fix reset password endpoint (#2921)
Fixes the admin password reset endpoint. It was using a wrong variable, so could not detect the user. Adds some more checks to validate we can actually change the password.
Diffstat (limited to 'test')
-rw-r--r--test/user.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/user.go b/test/user.go
index 692eae35..95a8f83e 100644
--- a/test/user.go
+++ b/test/user.go
@@ -47,7 +47,7 @@ var (
type User struct {
ID string
- accountType api.AccountType
+ AccountType api.AccountType
// key ID and private key of the server who has this user, if known.
keyID gomatrixserverlib.KeyID
privKey ed25519.PrivateKey
@@ -66,7 +66,7 @@ func WithSigningServer(srvName gomatrixserverlib.ServerName, keyID gomatrixserve
func WithAccountType(accountType api.AccountType) UserOpt {
return func(u *User) {
- u.accountType = accountType
+ u.AccountType = accountType
}
}