Skip to content

Signup flow succeeds with "You are registered", despite sendMail failure #6

Description

@neoneye

When trying to register a new user, then I'm getting this error in the console:

email.send error: Error(code: 7, description: "Couldn\'t connect to server", response: PerfectCURL.CURLResponse)

The "You are registered" message is coming from the LocalAuthWebHandlers.registerPost() function. This function does check for errors, but fails to detect that the email couldn't be sent.

Solution

Modify the Account.register() function so it checks of the return value from the Utility.sendMail() function.

Modify the Utility. sendMail() catch block, so it doesn't discards the smtp errors. Perhaps use the smtp code from the mysql repo.

Activity

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