@rpcbase/server 0.193.0 → 0.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -14,7 +14,7 @@ const ResetPasswordToken = require("../models/ResetPasswordToken")
|
|
|
14
14
|
|
|
15
15
|
const log = debug("rb:auth:reset_password")
|
|
16
16
|
|
|
17
|
-
const {APP_DOMAIN} = process.env
|
|
17
|
+
const {APP_DOMAIN, MAILER_FROM_EMAIL} = process.env
|
|
18
18
|
|
|
19
19
|
const email_tpl = _template(
|
|
20
20
|
fs.readFileSync(path.join(__dirname, "./forgot_password_email.html"), "utf8")
|
|
@@ -49,7 +49,7 @@ const reset_password = async({email}, ctx) => {
|
|
|
49
49
|
const reset_url = `https://${APP_DOMAIN}/set-new-password?id=${user._id}&token=${token}`
|
|
50
50
|
|
|
51
51
|
const res = await mailer.sendEmail({
|
|
52
|
-
From:
|
|
52
|
+
From: MAILER_FROM_EMAIL,
|
|
53
53
|
To: user.email,
|
|
54
54
|
Subject: "Your password reset link",
|
|
55
55
|
HtmlBody: email_tpl({
|