Create Users Manually (Email still required) (#1381)
* Implemented a manual button to allow users to setup an account, even after they invited. Updated error toast to put "Error" in the title of the toast. * Updated the exception middleware to always send full context instead of generic "Internal Server Error"
This commit is contained in:
parent
63d74ecf9a
commit
1d806bf622
10 changed files with 1668 additions and 17 deletions
|
@ -35,9 +35,9 @@ namespace API.Middleware
|
|||
context.Response.ContentType = "application/json";
|
||||
context.Response.StatusCode = (int) HttpStatusCode.InternalServerError;
|
||||
|
||||
var response = _env.IsDevelopment()
|
||||
? new ApiException(context.Response.StatusCode, ex.Message, ex.StackTrace)
|
||||
: new ApiException(context.Response.StatusCode, "Internal Server Error", ex.StackTrace);
|
||||
var errorMessage = string.IsNullOrEmpty(ex.Message) ? "Internal Server Error" : ex.Message;
|
||||
|
||||
var response = new ApiException(context.Response.StatusCode, errorMessage, ex.StackTrace);
|
||||
|
||||
var options = new JsonSerializerOptions
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue