mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-28 10:59:23 -05:00
Merge pull request #2209 from matrix-org/luke/username-availability-post
Change register/available to POST (from GET)
This commit is contained in:
commit
7313a23dba
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user