Skip to content

Undefined error when trying to login an oauth user with email #1444

@davidruisinger

Description

@davidruisinger

Environment Setup

Backend: Parse Server 2.2.6
Frontend Web App: Parse JS SDK 1.8.1

Steps to reproduce

  1. Login to parse using one of the 3rd party oauth providers
  2. Check DB => New user with oauth data is created
  3. Add an username/email (in my case they are equal) to that oauth user (Note: I do NOT have a password set for the user)
  4. Logout
  5. Try to login using the username/email that just has been added to the oauth user
    => Getting an undefined error since that user has NO password (which was on purpose)

Expected behavior:
=> Getting an error that tells me that this user has no password so that I can handle that error in my front end code.

Logs/Trace

Parse Server VerboseMode output (multiple times the same error):

verbose: GET /api/login { host: '192.168.0.132:1337',
  'content-type': 'text/plain',
  origin: 'file://',
  connection: 'keep-alive',
  accept: '*/*',
  'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E238 (5751683120)',
  'accept-language': 'de-de',
  'accept-encoding': 'gzip, deflate',
  'content-length': '221' } {
  "username": "MY_EMAIL",
  "password": "MY_PASSWORD"
}
verbose: error: Incorrect arguments
error: Uncaught internal server error. Incorrect arguments undefined

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