自定义重置密码电子邮件-PARSE

时间:2019-04-11 14:12:04

标签: javascript

我正在使用parse-serve,我想自定义电子邮件以更改密码。问题是我找不到https://github.com/parse-community/parse-server/blob/master/src/Controllers/UserController.js

中的UserController.js文件
defaultResetPasswordEmail({ link, user, appName }) {
    const text =
      'Hi,\n\n' +
      'You requested to reset your password for ' +
      appName +
      (user.get('username')
        ? " (your username is '" + user.get('username') + "')"
        : '') +
      '.\n\n' +
      '' +
      'Click here to reset it:\n' +
      link;
    const to = user.get('email') || user.get('username');
    const subject = 'Password Reset for ' + appName;
    return { text, to, subject };
  }
}

我在项目中找不到此代码!

0 个答案:

没有答案