Skip to content

🐛 Bug Report: Wrong error message on createEmailSession #7299

Closed as not planned

Description

@step135

👟 Reproduction steps

When user doesn't exist it throws Error message: AppwriteException: Invalid credentials. Please check the email and password.

👍 Expected behavior

The error message should be that user doesn't exist.

👎 Actual Behavior

It is not possible to distinguish from situation when user exists, but entered wrong password.

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Activity

  1. added
    bug
    on Dec 18, 2023
  2. stnguyen90 commented on Dec 19, 2023

    @stnguyen90
    Contributor

    @step135, thanks for creating this issue! 🙏🏼 This is the expected behavior because we don't want to leak information about whether a user exists or not.

    For more information on this matter, see https://www.rapid7.com/blog/post/2017/06/15/about-user-enumeration/

  3. self-assigned this
    on Dec 19, 2023
  4. added
    product / auth
    on Dec 19, 2023
  5. step135 commented on Jan 9, 2024

    @step135
    Author

    Firebase has an option to allow leaking that information. This can be a new feature here too.

  6. stnguyen90 commented on Apr 25, 2024

    @stnguyen90
    Contributor

    For now, we'd rather not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugproduct / auth

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions