From 04a2b73805fc1213df42ef9af4cdcf27ff7c86db Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Mon, 14 Nov 2022 11:04:36 +0700 Subject: refactor: Password reset service - Use FulfillPasswordResetRequestResult to indicate fulfillment result - Rename db names forgot_password_requests > password_reset_requests --- code/api/src/Program.cs | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'code/api/src/Program.cs') diff --git a/code/api/src/Program.cs b/code/api/src/Program.cs index e56c123..f27f048 100644 --- a/code/api/src/Program.cs +++ b/code/api/src/Program.cs @@ -6,15 +6,16 @@ global using System.Net; global using System.Threading; global using System.Threading.Tasks; global using System.Collections.Generic; -global using System.Runtime.Serialization; global using System.ComponentModel.DataAnnotations.Schema; global using System.Security.Claims; global using System.Text.Json; global using System.Text.Json.Serialization; global using IOL.GreatOffice.Api.Data.Database; -global using IOL.GreatOffice.Api.Data.Exceptions; global using IOL.GreatOffice.Api.Data.Enums; global using IOL.GreatOffice.Api.Data.Models; +global using IOL.GreatOffice.Api.Data.Static; +global using IOL.GreatOffice.Api.Services; +global using IOL.GreatOffice.Api.Utilities; global using IOL.Helpers; global using Microsoft.OpenApi.Models; global using Microsoft.AspNetCore.Authentication.Cookies; @@ -31,10 +32,6 @@ global using Microsoft.Extensions.DependencyInjection; global using Microsoft.Extensions.Hosting; global using Microsoft.Extensions.Logging; global using Serilog; -global using IOL.GreatOffice.Api.Data; -global using IOL.GreatOffice.Api.Data.Static; -global using IOL.GreatOffice.Api.Services; -global using IOL.GreatOffice.Api.Utilities; using IOL.GreatOffice.Api.Endpoints.V1; using IOL.GreatOffice.Api.Jobs; using Microsoft.AspNetCore.HttpOverrides; @@ -228,11 +225,6 @@ public static class Program CreateWebApplication(CreateAppBuilder(args)).Run(); return 0; } catch (Exception ex) { - // This is subject to change in future .net versions, see https://github.com/dotnet/runtime/issues/60600. - if (ex.GetType().Name.Equals("StopTheHostException", StringComparison.Ordinal)) { - throw; - } - Log.Fatal(ex, "Unhandled exception"); return 1; } -- cgit v1.3