Skip to content
Snippets Groups Projects
Commit 7313a23d authored by Luke Barnard's avatar Luke Barnard Committed by GitHub
Browse files

Merge pull request #2209 from matrix-org/luke/username-availability-post

Change register/available to POST (from GET)
parents ca238bc0 f7278e61
No related branches found
No related tags found
No related merge requests found
...@@ -142,7 +142,7 @@ class UsernameAvailabilityRestServlet(RestServlet): ...@@ -142,7 +142,7 @@ class UsernameAvailabilityRestServlet(RestServlet):
) )
@defer.inlineCallbacks @defer.inlineCallbacks
def on_GET(self, request): def on_POST(self, request):
ip = self.hs.get_ip_from_request(request) ip = self.hs.get_ip_from_request(request)
with self.ratelimiter.ratelimit(ip) as wait_deferred: with self.ratelimiter.ratelimit(ip) as wait_deferred:
yield wait_deferred yield wait_deferred
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment