Please click the below link to verify your email address:
"; 40 | 41 | await _emailSender.SendEmailAsync(request.Email, "Please verify email address", message); 42 | 43 | return Unit.Value; 44 | } 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /Application/User/User.cs: -------------------------------------------------------------------------------- 1 | using System.Linq; 2 | using System.Text.Json.Serialization; 3 | using Application.Interfaces; 4 | using Domain; 5 | 6 | namespace Application.User 7 | { 8 | public class User 9 | { 10 | public User(AppUser user, IJwtGenerator jwtGenerator, string refreshToken) 11 | { 12 | DisplayName = user.DisplayName; 13 | Token = jwtGenerator.CreateToken(user); 14 | Username = user.UserName; 15 | Image = user.Photos.FirstOrDefault(x => x.IsMain)?.Url; 16 | RefreshToken = refreshToken; 17 | 18 | } 19 | public string DisplayName { get; set; } 20 | public string Token { get; set; } 21 | public string Username { get; set; } 22 | public string Image { get; set; } 23 | 24 | [JsonIgnore] 25 | public string RefreshToken { get; set; } 26 | } 27 | } -------------------------------------------------------------------------------- /Application/Validators/ValidatorExtensions.cs: -------------------------------------------------------------------------------- 1 | using FluentValidation; 2 | 3 | namespace Application.Validators 4 | { 5 | public static class ValidatorExtensions 6 | { 7 | public static IRuleBuilder{format(activity.date, 'eeee do MMMM')}
46 |47 | Hosted by{' '} 48 | 49 | {host.displayName} 50 | 51 |
52 |{activity.description}
16 |29 | Please check your email (including junk folder) for the verication 30 | email 31 |
32 | {email && ( 33 | <> 34 |35 | Didn't receive the email? Please click below button to resend 36 |
37 |Verifying...
; 44 | case Status.Failed: 45 | return ( 46 |48 | Verication failed - you can try resending the verification email 49 |
50 |Email has been verified - you can now login
57 |