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

Commit dc1f188

Browse files
author
David Robertson
committed
Revert "Better errcode when pw reset emails are disabled"
This reverts commit 9a47994.
1 parent b81faf4 commit dc1f188

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

synapse/rest/client/account.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616
import logging
1717
import random
18-
from http import HTTPStatus
1918
from typing import TYPE_CHECKING, Optional, Tuple
2019
from urllib.parse import urlparse
2120

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

9188
body = parse_and_validate_json_object_from_request(

0 commit comments

Comments
 (0)