mirror of
https://github.com/element-hq/synapse.git
synced 2026-10-22 13:12:30 +00:00
Change register/available to POST (from GET)
This commit is contained in:
1 parent
ca238bc023
commit
f7278e612e
1 file changed
+1
-1
@@ -142,7 +142,7 @@ class UsernameAvailabilityRestServlet(RestServlet):
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def on_GET(self, request):
|
||||
def on_POST(self, request):
|
||||
ip = self.hs.get_ip_from_request(request)
|
||||
with self.ratelimiter.ratelimit(ip) as wait_deferred:
|
||||
yield wait_deferred
|
||||
|
||||
Reference in new issue
Block a user