kaori 4 anni fa
parent
commit
20fd6f4beb

+ 3 - 3
packages/app/src/server/routes/apiv3/forgot-password.js

@@ -37,11 +37,11 @@ module.exports = (crowi) => {
       'Too many requests were sent from this IP. Please try a password reset request again on the password reset request form',
       'Too many requests were sent from this IP. Please try a password reset request again on the password reset request form',
   });
   });
 
 
-  async function sendPasswordResetEmail(txtFile, i18n, email, url) {
+  async function sendPasswordResetEmail(txtFileName, i18n, email, url) {
     return mailService.send({
     return mailService.send({
       to: email,
       to: email,
-      subject: txtFile,
-      template: path.join(crowi.localeDir, `${i18n}/notifications/${txtFile}.txt`),
+      subject: txtFileName,
+      template: path.join(crowi.localeDir, `${i18n}/notifications/${txtFileName}.txt`),
       vars: {
       vars: {
         appTitle: appService.getAppTitle(),
         appTitle: appService.getAppTitle(),
         email,
         email,