-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
56 additions
and
8 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
20 changes: 20 additions & 0 deletions
20
src/api/framework/Infrastructure/Identity/Users/Endpoints/ConfirmEmailEndpoint.cs
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,20 @@ | ||
using FSH.Framework.Core.Identity.Users.Abstractions; | ||
using Microsoft.AspNetCore.Builder; | ||
using Microsoft.AspNetCore.Http; | ||
using Microsoft.AspNetCore.Routing; | ||
|
||
namespace FSH.Framework.Infrastructure.Identity.Users.Endpoints; | ||
public static class ConfirmEmailEndpoint | ||
{ | ||
internal static RouteHandlerBuilder MapConfirmEmailEndpoint(this IEndpointRouteBuilder endpoints) | ||
{ | ||
return endpoints.MapGet("/confirm-email", (string userId, string code, string tenant, IUserService service) => | ||
{ | ||
return service.ConfirmEmailAsync(userId, code, tenant, default); | ||
}) | ||
.WithName(nameof(ConfirmEmailEndpoint)) | ||
.WithSummary("confirm user email") | ||
.WithDescription("confirm user email") | ||
.AllowAnonymous(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"DatabaseOptions": { | ||
"Provider": "postgresql", | ||
"ConnectionString": "Server=localhost;Database=fullstackhero;Port=5432;User Id=admin;Password=admin;" | ||
"ConnectionString": "Server=192.168.1.110;Database=fsh;User Id=postgres;Password=password" | ||
}, | ||
"OriginOptions": { | ||
"OriginUrl": "https://localhost:7000" | ||
|
@@ -23,8 +23,8 @@ | |
"From": "[email protected]", | ||
"Host": "smtp.ethereal.email", | ||
"Port": 587, | ||
"UserName": "sherman.oconnell47@ethereal.email", | ||
"Password": "KbuTCFv4J6Fy7256vh", | ||
"UserName": "ruth.ruecker@ethereal.email", | ||
"Password": "wygzuX6kpcK6AfDJcd", | ||
"DisplayName": "Mukesh Murugan" | ||
}, | ||
"CorsOptions": { | ||
|
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 |
---|---|---|
|
@@ -23,8 +23,8 @@ | |
"From": "[email protected]", | ||
"Host": "smtp.ethereal.email", | ||
"Port": 587, | ||
"UserName": "sherman.oconnell47@ethereal.email", | ||
"Password": "KbuTCFv4J6Fy7256vh", | ||
"UserName": "ruth.ruecker@ethereal.email", | ||
"Password": "wygzuX6kpcK6AfDJcd", | ||
"DisplayName": "Mukesh Murugan" | ||
}, | ||
"CorsOptions": { | ||
|