-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(password-reset): add password reset endpoints
- add test for password reset endpoint - add password reset endpoint routes. - add update Password service. - add verify email and send email Helper. - add password validation userSchema. - update documentation. [Delivers #167749954]
- Loading branch information
1 parent
9689f85
commit a6dc289
Showing
6 changed files
with
117 additions
and
88 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,12 +1,5 @@ | ||
const senderEmail = process.env.EMAIL; | ||
|
||
const sendEmail = (transport, emailData) => new Promise((resolve, reject) => { | ||
transport.sendMail({ | ||
from: `"Magma Talent Team"<${senderEmail}>`, // sender address | ||
to: `${emailData.recipientEmail}`, | ||
subject: `${emailData.subject}`, // Subject line | ||
html: `${emailData.body}` | ||
}, (err, info) => (err ? reject(err) : resolve(info))); | ||
transport.sendMail(emailData, (err, info) => (err ? reject(err) : resolve(info))); | ||
}); | ||
|
||
export default sendEmail; |