mirror of
https://mau.dev/maunium/synapse.git
synced 2025-01-22 07:10:06 +01:00
improve human readable error message
This commit is contained in:
parent
c42f7fd7b9
commit
bae37cd811
1 changed files with 2 additions and 1 deletions
|
@ -378,7 +378,8 @@ class RegisterRestServlet(RestServlet):
|
||||||
if not check_3pid_allowed(self.hs, medium, address):
|
if not check_3pid_allowed(self.hs, medium, address):
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
403,
|
403,
|
||||||
"Third party identifier (email/phone number) is not allowed",
|
"Third party identifiers (email/phone numbers)" +
|
||||||
|
" are not authorized on this server",
|
||||||
Codes.THREEPID_DENIED,
|
Codes.THREEPID_DENIED,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue