kaori пре 4 година
родитељ
комит
5a82fc741c
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      src/server/routes/forgot-password.js

+ 3 - 3
src/server/routes/forgot-password.js

@@ -18,10 +18,10 @@ module.exports = function(crowi, app) {
   };
   };
 
 
 
 
-  async function sendPasswordResetEmail(i18n) {
+  async function sendPasswordResetEmail(email, i18n) {
 
 
     return mailService.send({
     return mailService.send({
-      to: 'hoge@example.com',
+      to: email,
       subject: 'forgotPasswordMailTest',
       subject: 'forgotPasswordMailTest',
       template: path.join(crowi.localeDir, `${i18n}/notifications/passwordReset.txt`),
       template: path.join(crowi.localeDir, `${i18n}/notifications/passwordReset.txt`),
       // TODO: need to set appropriate values by GW-6828
       // TODO: need to set appropriate values by GW-6828
@@ -48,7 +48,7 @@ module.exports = function(crowi, app) {
     const grobalLang = configManager.getConfig('crowi', 'app:globalLang');
     const grobalLang = configManager.getConfig('crowi', 'app:globalLang');
     const i18n = req.language || grobalLang;
     const i18n = req.language || grobalLang;
 
 
-    await sendPasswordResetEmail(i18n);
+    await sendPasswordResetEmail(email, i18n);
     return;
     return;
   };
   };