Giter Club home page Giter Club logo

Comments (2)

oproulx avatar oproulx commented on May 24, 2024

error: Uncaught internal server error. Cannot read property 'others' of undefined {"stack":"TypeError: Cannot read property 'others' of undefined\n at Object.sendPasswordResetEmail (D:\home\site\wwwroot\node_modules\parse-smtp-template\index.js:275:119)\n at UserController.sendPasswordResetEmail (D:\home\site\wwwroot\node_modules\parse-server\lib\Controllers\UserController.js:295:20)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:94:5)"}

TypeError: Cannot read property 'others' of undefined
at Object.sendPasswordResetEmail (D:\home\site\wwwroot\node_modules\parse-smtp-template\index.js:275:119)
at UserController.sendPasswordResetEmail (D:\home\site\wwwroot\node_modules\parse-server\lib\Controllers\UserController.js:295:20)
at runMicrotasks ()
at processTicksAndRejections (internal/process/task_queues.js:94:5)

The issue seems to be on this line:
const options = (_multiLang && mailOptions.multiLangPass) ? mailOptions.multiLangPass[user[_multiLangColumn]].others || {} : mailOptions.passwordOptions.others || {};

It seems there needs to be a check to make sure that mailOptions.multiLangPass[user[_multiLangColumn]] != 'undefined'

from parse-smtp-template.

macarthuror avatar macarthuror commented on May 24, 2024

Solved in #22

from parse-smtp-template.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.