Skip to content
Snippets Groups Projects
Commit bae37cd8 authored by Neil Johnson's avatar Neil Johnson
Browse files

improve human readable error message

parent c42f7fd7
No related branches found
No related tags found
No related merge requests found
......@@ -378,7 +378,8 @@ class RegisterRestServlet(RestServlet):
if not check_3pid_allowed(self.hs, medium, address):
raise SynapseError(
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,
)
......
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