mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:04:50 -04:00
Change password reset links to /_matrix.
This commit is contained in:
parent
6bac9ca6d7
commit
10383e6e6f
6 changed files with 260 additions and 7 deletions
|
@ -441,3 +441,15 @@ class HomeserverTestCase(TestCase):
|
|||
|
||||
access_token = channel.json_body["access_token"]
|
||||
return access_token
|
||||
|
||||
def attempt_wrong_password_login(self, username, password):
|
||||
"""Attempts to login as the user with the given password, asserting
|
||||
that the attempt *fails*.
|
||||
"""
|
||||
body = {"type": "m.login.password", "user": username, "password": password}
|
||||
|
||||
request, channel = self.make_request(
|
||||
"POST", "/_matrix/client/r0/login", json.dumps(body).encode('utf8')
|
||||
)
|
||||
self.render(request)
|
||||
self.assertEqual(channel.code, 403, channel.result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue