Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Revert "Better errcode when pw reset emails are disabled"
Browse files Browse the repository at this point in the history
This reverts commit 9a47994.
  • Loading branch information
David Robertson committed Jul 20, 2022
1 parent b81faf4 commit dc1f188
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions synapse/rest/client/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
# limitations under the License.
import logging
import random
from http import HTTPStatus
from typing import TYPE_CHECKING, Optional, Tuple
from urllib.parse import urlparse

Expand Down Expand Up @@ -83,9 +82,7 @@ async def on_POST(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
"User password resets have been disabled due to lack of email config"
)
raise SynapseError(
HTTPStatus.NOT_FOUND,
"Email-based password resets have been disabled on this server",
Codes.NOT_FOUND,
400, "Email-based password resets have been disabled on this server"
)

body = parse_and_validate_json_object_from_request(
Expand Down

0 comments on commit dc1f188

Please sign in to comment.