Skip to content

Not seeing any error messages on failed login #125

Description

@jrtilson

When attempting to login with a regular username/email and password, I'm not presented with any errors on the form if the user enters invalid credentials. I do however see the following in the browser console:

Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the LoginForm component.

I understand this a pretty common react issue, but I'm not sure why it's happening here. I managed to track it down to a this.showMessage call (which in turn calls this.setState) in a Meteor method callback, this one to be specific LoginForm.jsx

Any idea how to sort this out?

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