Skip to content

[Bug] show the error text when user is trying to change the email of current user to a duplicate email within same instance #1594

@MayurSMahajan

Description

@MayurSMahajan

Describe the bug
Right now when a user tries to set their email address as another email address, which already exists, AppFlowy admin panel shows the entire error object.

To Reproduce
Steps to reproduce the behavior:

  1. Click your profile avatar inside appflowy admin panel
  2. Click on pencil icon button which appears upon hovering Email field's value
  3. Try changing the email to an email which already exists as user for the same self hosted instance
  4. See that the entire error object is printed.

Expected behavior
A clear and concise description of the error should appear saying email is not available because it is duplicate

Screenshots
Image

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser [e.g. chrome, safari] - firefox
  • Version [e.g. 22]

Additional context

  • Please also check other places where the entire error msgs are shown to the user instead of a concise and descriptive error message.

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