-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: connect registration to store * feat: add registration function to store * feat: add registration path * feat: add registration module * feat: add registration email template * Update index.tsx * Update SignIn.tsx * Update authSlice.ts * Update custom_auth_view.py * Create test_views.py * Update urls.py * Rename django_project/core/templates/email.html to django_project/core/templates/account/email_confirmation.html * Update urls.py * Update test_views.py * Update urls.py * Update custom_auth_view.py * Add files via upload * Update project.py * Update .template.env * Update SignIn.tsx * Update authSlice.ts * Update SignIn.tsx * Update test_views.py * Update test_views.py * Update custom_auth_view.py * Update contrib.py * Update SignIn.tsx * Update authSlice.ts * Update test_views.py * Update authSlice.ts * Update authSlice.ts * Update SignIn.tsx --------- Co-authored-by: Dimas Ciputra <[email protected]>
- Loading branch information
1 parent
e1f171c
commit 773ef97
Showing
9 changed files
with
736 additions
and
26 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
60 changes: 60 additions & 0 deletions
60
django_project/core/templates/account/email_confirmation.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,60 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Registration and Verify Email Notification</title> | ||
</head> | ||
<body style="font-family: Helvetica, sans-serif; margin: 0; padding: 0; background-color: #f4f4f4;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="900" style="background-color: #2f5c4a; padding: 10px;"> | ||
<tr> | ||
<!-- Left Column: Logo --> | ||
<td align="left" width="50%" style="padding: 10px;"> | ||
<img src="https://arw.sta.do.kartoza.com/static/images/main_logo.svg" alt="Logo" width="200" style="display: block;"> | ||
</td> | ||
<!-- Right Column: Title or Navigation Links --> | ||
<td align="right" width="50%" style="padding: 10px; color: #ffffff; font-family: Helvetica,sans-serif;"> | ||
<h2 style="margin: 0; font-size: 24px;">Africa Rangeland Watch</h2> | ||
<!-- Optional: Add links or other content here --> | ||
</td> | ||
</tr> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="900" style="background-color: #ffffff; padding: 20px; border: 10px solid #dddddd;"> | ||
<tr> | ||
<td style="padding: 20px;"> | ||
<h2 style="font-size: 20px; color: #333333;">Welcome to the Africa Rangeland Watch Platform!</h2> | ||
|
||
<p style="font-size: 16px; color: #333333;"> | ||
To finalize your registration and make sure your account is fully set up, please take a moment to verify your email address. Just click the button below: | ||
</p> | ||
<table width="100%" cellspacing="0" cellpadding="0"> | ||
<tr> | ||
<td align="center" style="padding: 20px 0;"> | ||
<a href="{{ activate_url }}" style="background-color: #FFA500; color: #ffffff; padding: 15px 50px; text-decoration: none; font-size: 16px; border-radius: 5px;">Verify Email</a> | ||
</td> | ||
</tr> | ||
</table> | ||
<p style="font-size: 16px; color: #333333;"> | ||
If the button doesn’t work, you can also verify by copying and pasting the link below into your browser: | ||
</p> | ||
<p style="font-size: 16px; color: #333333; font-weight: regular;"> | ||
<a href="{{ activate_url }}" style="color: #FFA500;">{{ activate_url }}</a> | ||
</p> | ||
|
||
<p style="font-size: 16px; color: #333333;"> | ||
Thank you for joining us, and we’re excited to have you as part of our community! If you have any questions, feel free to reach out to our support team at <a href="mailto:[email protected]" style="color: #FFA500;">[email protected]</a>. | ||
</p> | ||
<p style="font-size: 16px; color: #333333;"> | ||
Best,<br> | ||
The Africa Rangeland Watch Team | ||
</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="padding: 10px; text-align: center; font-size: 14px; color: #999999;"> | ||
<p>Find the platform here <a href="https://africarangelandwatch.com" style="color: #FFA500;">Africa Rangeland Watch</a>. Not interested in emails from us? <a href="[Unsubscribe Link]" style="color: #FFA500;">Unsubscribe here</a>.</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
58 changes: 58 additions & 0 deletions
58
django_project/core/templates/account/password_reset_email.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,58 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Reset Password Request</title> | ||
</head> | ||
<body style="font-family: Helvetica, sans-serif; margin: 0; padding: 0; background-color: #f4f4f4;"> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="900" style="background-color: #2f5c4a; padding: 10px;"> | ||
<tr> | ||
<!-- Left Column: Logo --> | ||
<td align="left" width="50%" style="padding: 10px;"> | ||
<img src="{{ django_backend_url }}/static/images/main_logo.svg" alt="Logo" width="200" style="display: block;"> | ||
</td> | ||
<!-- Right Column: Title or Navigation Links --> | ||
<td align="right" width="50%" style="padding: 10px; color: #ffffff; font-family: Helvetica,sans-serif;"> | ||
<h2 style="margin: 0; font-size: 24px;">Africa Rangeland Watch</h2> | ||
<!-- Optional: Add links or other content here --> | ||
</td> | ||
</tr> | ||
</table> | ||
<table align="center" border="0" cellpadding="0" cellspacing="0" width="900" style="background-color: #ffffff; padding: 20px; border: 10px solid #dddddd;"> | ||
<tr> | ||
<td style="padding: 20px;"> | ||
<h2 style="font-size: 20px; color: #333333;">Reset Password Request</a></h2> | ||
|
||
<p style="font-size: 16px; color: #333333;"> | ||
Dear User, | ||
</p> | ||
<p style="font-size: 16px; color: #333333;"> | ||
We received a request to reset the password for your Africa Rangeland Watch account. If you made this request, simply click the link below to reset your password: | ||
</p> | ||
<table width="100%" cellspacing="0" cellpadding="0"> | ||
<tr> | ||
<td align="center" style="padding: 20px 0;"> | ||
<a href="{{ reset_password_url }}" style="background-color: #FFA500; color: #ffffff; padding: 15px 50px; text-decoration: none; font-size: 16px; border-radius: 5px;">Reset Password</a> | ||
</td> | ||
</tr> | ||
</table> | ||
<p style="font-size: 16px; color: #333333;"> | ||
If you didn’t request a password reset, please ignore this email, and your password will remain the same. | ||
</p> | ||
<p style="font-size: 16px; color: #333333;"> | ||
If you need any further assistance, feel free to contact us at <a href="mailto:[Support Email]" style="color: #FFA500;">[Support Email]</a>. | ||
</p> | ||
<p style="font-size: 16px; color: #333333;"> | ||
Thank you, | ||
<br>The Africa Rangeland Watch Team | ||
</p> | ||
</td> | ||
</tr> | ||
<td style="padding: 10px; text-align: center; font-size: 14px; color: #999999;"> | ||
<p>Find the platform here <a href="{{ django_backend_url }}" style="color: #FFA500;">Africa Rangeland Watch</a>. Not interested in emails from us? <a href="[Unsubscribe Link]" style="color: #FFA500;">Unsubscribe here</a>.</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
Oops, something went wrong.