Skip to content

validateEmailConfiguration should be called when sending reset password email #1649

Closed

Description

@natanrolnik

Environment Setup

Parse Server 2.2.7 on Heroku

Steps to reproduce

  • Configure an Email Adapter in index.js
  • Don't configure app name and/or public server URL
  • Request a reset password email via requestPasswordReset

Result

Users will receive an email with title "Password reset for undefined", and body:

"You requested to reset your password for undefined. Click here to reset it: undefined/apps/....."

Expected Result

validateEmailConfiguration or some variation of it should be called before sending reset password emails, to make sure that both app name and public server url were set correctly.

Activity

  1. drew-gross commented on Apr 26, 2016

    @drew-gross
    Contributor

    Yep that definitely should be called. Not sure when it stopped being called.

  2. added
    type:bugImpaired feature or lacking behavior that is likely assumed
    and removed
    type:bugImpaired feature or lacking behavior that is likely assumed
    on Apr 26, 2016
  3. drew-gross commented on Apr 26, 2016

    @drew-gross
    Contributor

    Actually this seems to be a different issue. I made a regression test in #1650 and it passes.

  4. natanrolnik commented on Apr 27, 2016

    @natanrolnik
    ContributorAuthor

    The regression test you wrote doesn't really test what I mentioned here. I'll comment on the PR.
    I think it's still a bug.

  5. damtsnkff commented on Apr 30, 2016

    @damtsnkff

    @natanrolnik Did you solve it ? I'm facing the exact same problem. I tried with parse-server: ~2.2.7 and ~2.2.2

  6. damtsnkff commented on Apr 30, 2016

    @damtsnkff

    @natanrolnik @drew-gross Ok that was a stupid mistake. I forgot the publicServerURL... and I was checking the wrong index.js when debugging. Fixed for me.

  7. added a commit that references this issue on May 26, 2016
    0cb352e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions