-
-
Notifications
You must be signed in to change notification settings - Fork 949
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: don't return 500 if active strategy is disabled (#3197)
- Loading branch information
1 parent
411633d
commit 3a734c2
Showing
13 changed files
with
281 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
...covery/.snapshots/TestHandleError-flow=api-case=fails_if_active_strategy_is_disabled.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"type": "api", | ||
"request_url": "http:///", | ||
"active": "link", | ||
"ui": { | ||
"method": "POST", | ||
"nodes": [ | ||
{ | ||
"type": "input", | ||
"group": "default", | ||
"attributes": { | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": {} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "code", | ||
"attributes": { | ||
"name": "email", | ||
"type": "email", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070007, | ||
"text": "Email", | ||
"type": "info" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "code", | ||
"attributes": { | ||
"name": "method", | ||
"type": "submit", | ||
"value": "code", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070005, | ||
"text": "Submit", | ||
"type": "info" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"id": 4000001, | ||
"text": "The active recovery strategy code is not enabled. Please enable it in the configuration.", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
"state": "choose_method" | ||
} | ||
|
6 changes: 6 additions & 0 deletions
6
...ndleError-flow=browser-case=fails_to_retry_flow_if_recovery_strategy_id_is_not_valid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"code": 400, | ||
"message": "The request was malformed or contained invalid parameters", | ||
"reason": "The active recovery strategy not-valid is not enabled. Please enable it in the configuration.", | ||
"status": "Bad Request" | ||
} |
70 changes: 70 additions & 0 deletions
70
...covery/.snapshots/TestHandleError-flow=spa-case=fails_if_active_strategy_is_disabled.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ | ||
"type": "browser", | ||
"request_url": "http:///", | ||
"active": "link", | ||
"ui": { | ||
"method": "POST", | ||
"nodes": [ | ||
{ | ||
"type": "input", | ||
"group": "default", | ||
"attributes": { | ||
"name": "csrf_token", | ||
"type": "hidden", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": {} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "code", | ||
"attributes": { | ||
"name": "email", | ||
"type": "email", | ||
"required": true, | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070007, | ||
"text": "Email", | ||
"type": "info" | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "input", | ||
"group": "code", | ||
"attributes": { | ||
"name": "method", | ||
"type": "submit", | ||
"value": "code", | ||
"disabled": false, | ||
"node_type": "input" | ||
}, | ||
"messages": [], | ||
"meta": { | ||
"label": { | ||
"id": 1070005, | ||
"text": "Submit", | ||
"type": "info" | ||
} | ||
} | ||
} | ||
], | ||
"messages": [ | ||
{ | ||
"id": 4000001, | ||
"text": "The active recovery strategy code is not enabled. Please enable it in the configuration.", | ||
"type": "error" | ||
} | ||
] | ||
}, | ||
"state": "choose_method" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ndleError-flow=browser-case=fails_to_retry_flow_if_recovery_strategy_id_is_not_valid.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"code": 400, | ||
"message": "The request was malformed or contained invalid parameters", | ||
"reason": "The active verification strategy not-valid is not enabled. Please enable it in the configuration.", | ||
"status": "Bad Request" | ||
} |
Oops, something went wrong.