Skip to content

Expected Error format when login fails #2328

@bsylvain

Description

@bsylvain

According to documentation, when login fails, the login controller expect to have the message in reason.error :

try {
      await this.session.authenticate('authenticator:devise', identification, password);
    } catch(error) {
      this.errorMessage = error.error || error;
    }

My error payload in the response to an invalid login is just :
{error:"Mail or password incorrect"}

When a login fail, the error message remain empty

My question is : how is it supposed to be formated? Is it an ember side problem or a server side problem ?

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