-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update user registration process
- Loading branch information
1 parent
cc977ad
commit 7b1f65a
Showing
15 changed files
with
295 additions
and
4 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
82 changes: 82 additions & 0 deletions
82
...oundation/DotnetFoundation.Api/wwwroot/Templates/Emails/CompleteRegistrationTemplate.html
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,82 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Complete Registration</title> | ||
<style> | ||
table { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 20px auto; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
background: #e5ebe1; | ||
font-family: "Arial", sans-serif; | ||
} | ||
|
||
th { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.logo { | ||
max-width: 90px; | ||
border-radius: 8px; | ||
} | ||
|
||
h2 { | ||
color: #40b01b; | ||
margin-top: 0px; | ||
} | ||
|
||
td { | ||
padding: 20px; | ||
} | ||
|
||
.footer { | ||
background-color: #b3c6a6; | ||
text-align: center; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2"> | ||
<img | ||
src="https://i.postimg.cc/3wC1mFSj/logo.png" | ||
alt="Logo Image" | ||
class="logo" | ||
/> | ||
<h2>FoundationX</h2> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" style="padding: 20px"> | ||
<p>Hello,</p> | ||
<div> | ||
<strong>Welcome to FoundationX!</strong> | ||
<p> | ||
Thank you for verifying your email and joining our community. | ||
We're excited to have you on board! | ||
</p> | ||
</div> | ||
<br /> | ||
<p>Thank you,<br />FoundationX Team</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr class="footer"> | ||
<td>Contact us at <strong>[email protected]</strong></td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</body> | ||
</html> |
79 changes: 79 additions & 0 deletions
79
DotnetFoundation/DotnetFoundation.Api/wwwroot/Templates/Emails/ConfirmEmailTemplate
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,79 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Confirm Email</title> | ||
<style> | ||
table { | ||
width: 100%; | ||
max-width: 600px; | ||
margin: 20px auto; | ||
border-radius: 8px; | ||
overflow: hidden; | ||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); | ||
background: #e5ebe1; | ||
font-family: "Arial", sans-serif; | ||
} | ||
|
||
th { | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
.logo { | ||
max-width: 90px; | ||
border-radius: 8px; | ||
} | ||
|
||
h2 { | ||
color: #40b01b; | ||
margin-top: 0px; | ||
} | ||
|
||
td { | ||
padding: 20px; | ||
} | ||
|
||
.footer { | ||
background-color: #b3c6a6; | ||
text-align: center; | ||
padding: 10px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th colspan="2"> | ||
<img | ||
src="https://i.postimg.cc/3wC1mFSj/logo.png" | ||
alt="Logo Image" | ||
class="logo" | ||
/> | ||
<h2>FoundationX</h2> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td colspan="2" style="padding: 20px"> | ||
<p>Hello,</p> | ||
<div> | ||
<strong>Use this token to Confirm your email.</strong> | ||
<p><strong>Token :</strong> {body}</p> | ||
</div> | ||
<br /> | ||
<p>Thank you,<br />FoundationX Team</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr class="footer"> | ||
<td>Contact us at <strong>[email protected]</strong></td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
</body> | ||
</html> |
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
12 changes: 12 additions & 0 deletions
12
...ndation/DotnetFoundation.Application/Models/DTOs/AuthenticationDTO/ConfirmEmailRequest.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,12 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace DotnetFoundation.Application.Models.DTOs.AuthenticationDTO; | ||
|
||
public class ConfirmEmailRequest | ||
{ | ||
[Required(ErrorMessage = "Email is required")] | ||
[EmailAddress(ErrorMessage = "Invalid email")] | ||
public string Email { get; init; } = String.Empty; | ||
[Required(ErrorMessage = "Token is required")] | ||
public string Token { get; init; } = String.Empty; | ||
} |
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
Oops, something went wrong.