-
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.
Merge pull request #30 from elwyncrestha/feature/forget-password
Feature: Integrated reset password
- Loading branch information
Showing
7 changed files
with
220 additions
and
3 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
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
146 changes: 146 additions & 0 deletions
146
pemits-web/src/main/resources/templates/mail/reset-password.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,146 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http:https://www.thymeleaf.org"> | ||
<head> | ||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/> | ||
</head> | ||
<style> | ||
.custom-para { | ||
margin: 0; | ||
color: #4c4c4c; | ||
font-weight: 400; | ||
font-size: 16px; | ||
line-height: 1.25 | ||
} | ||
</style> | ||
<body> | ||
|
||
<div | ||
style="padding:0;margin:0 auto;width:100%!important;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif"> | ||
|
||
<table align="center" bgcolor="#EDF0F3" border="0" cellpadding="0" cellspacing="0" | ||
style="background-color:#edf0f3;table-layout:fixed" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center"> | ||
<table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" | ||
style="background-color:#ffffff;margin:0 auto;max-width:512px;width:inherit" | ||
width="512"> | ||
<tbody> | ||
<tr> | ||
<td bgcolor="#F6F8FA" | ||
style="background-color:#f6f8fa;padding:12px;border-bottom:1px solid #ececec"> | ||
<table border="0" cellpadding="0" cellspacing="0" | ||
style="width:100%!important;min-width:100%!important" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="left" valign="middle"><a | ||
style="color:#008cc9;display:inline-block;text-decoration:none"> | ||
<!--<img alt="" | ||
border="0" | ||
height="50" | ||
src="" | ||
style="outline:none;color:#ffffff;text-decoration:none" | ||
width="150">--> | ||
</a></td> | ||
<td align="right" style="padding:0 0 0 10px" width="100%"><a | ||
style="margin:0;color:#008cc9;display:inline-block;text-decoration:none"> | ||
<span | ||
style="word-wrap:break-word;color:#4c4c4c;word-break:break-word;font-weight:400;font-size:14px;line-height:1.429"><span | ||
th:text="${data.getTo()}"></span></span> | ||
</a></td> | ||
<td width="1"> </td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<table border="0" cellpadding="0" cellspacing="0" width="100%"> | ||
<tbody> | ||
<tr> | ||
<td style="padding:20px 24px 32px 24px"> | ||
<table border="0" cellpadding="0" cellspacing="0" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td style="padding-bottom:20px"><h2 | ||
style="margin:0;color:#262626;font-weight:700;font-size:20px;line-height:1.2"> | ||
Hello <span | ||
th:text="${data.getToName()}"></span>,</h2></td> | ||
</tr> | ||
<tr> | ||
<td style="padding-bottom:20px"> | ||
<p class="custom-para"> | ||
Please use this code for resetting your password. | ||
</p> | ||
<p class="custom-para"> | ||
Token: <strong><span th:text="${data.getResetToken()}"></span></strong> | ||
</p> | ||
<hr> | ||
<p class="custom-para" style="color: red;"> | ||
This token will expire as soon as you leave the form. | ||
</p> | ||
<hr> | ||
<p class="custom-para"> | ||
Regards, <br/> | ||
<em>The PEMITS Team</em> | ||
</p> | ||
<hr/> | ||
<p class="custom-para"> | ||
Note: Please do not reply to this email, as | ||
this is an automated email | ||
and any email sent to | ||
this email will not be answered. | ||
</p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<table align="center" bgcolor="#EDF0F3" border="0" cellpadding="0" | ||
cellspacing="0" | ||
style="background-color:#edf0f3;padding:0 24px;color:#6a6c6d;text-align:center" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" | ||
style="padding:16px 0 0 0;text-align:center"></td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<table border="0" cellpadding="0" cellspacing="0" | ||
width="100%"> | ||
<tbody> | ||
<tr> | ||
<td align="center" | ||
style="padding:0 0 12px 0;text-align:center"><p | ||
style="margin:0;color:#6a6c6d;font-weight:400;font-size:12px;line-height:1.333"></p> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
</body> | ||
</html> |