Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resend Invitation Fails, button shows "X" #14949

Closed
Myster opened this issue Oct 10, 2023 · 6 comments · Fixed by #14950
Closed

Resend Invitation Fails, button shows "X" #14949

Myster opened this issue Oct 10, 2023 · 6 comments · Fixed by #14950

Comments

@Myster
Copy link
Contributor

Myster commented Oct 10, 2023

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

10.7.0, also reported in 10.5.0, and 10.3.2

Bug summary

After sending an invite we cannot click "Resend Invitation"
I am not aware in our case what the user did in the interim, but this forum post says the bug occurs if the user starts but does not complete registration

Specifics

URL: https://localhost:44310/umbraco#/users/users/user/33?orderBy=Name&orderDirection=Ascending&pageNumber=1
Image (this X shows up for a second or 2 after you click "Resend Invitation"):
image
API URL: https://localhost:44310/umbraco/backoffice/umbracoapi/users/PostInviteUser
API Payload (formatted):

{
    "id": 73,
    "parentId": -1,
    "name": "__REDACTED__",
    "username": "admin@__REDACTED__",
    "culture": "en-US",
    "email": "admin@__REDACTED__",
    "startContentIds":
    [],
    "startMediaIds":
    [],
    "userGroups":
    [
        "__REDACTED__"
    ],
    "message": "Resending invitation...",
    "key": "00000049-0000-0000-0000-000000000000"
}

API Response Content:

)]}',
{"Message":"The request is invalid.","ModelState":{"Email":["A user with the email already exists"]}}

Note: there is only one user with the email address (the one I'm trying to resend)

Steps to reproduce

In back office Invite User, Click invite link, but don't complete (not sure exactly here)
In back office Resend Invite.

Expected result / actual result

The invite should be resent.

@github-actions
Copy link

Hi there @Myster!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

  • We'll assess whether this issue relates to something that has already been fixed in a later version of the release that it has been raised for.
  • If it's a bug, is it related to a release that we are actively supporting or is it related to a release that's in the end-of-life or security-only phase?
  • We'll replicate the issue to ensure that the problem is as described.
  • We'll decide whether the behavior is an issue or if the behavior is intended.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot 🤖 🙂

@Myster
Copy link
Contributor Author

Myster commented Oct 10, 2023

Note: a workaround is to delete and recreate the user, which you can do if they have never logged in but not after they've logged in.

@rammi987
Copy link
Contributor

Also an issuse in 12.2.0.

@DanDiplo
Copy link
Contributor

I've also seen this fail, but the reason may be different. In the Umbraco trace log I see:

VerifyUserTokenAsync() failed with purpose: "EmailConfirmation" for user.

This occurs on Umbraco.Cms.Web.BackOffice.Controllers.BackOfficeController.VerifyInvite

Could not verify email, Error: "Invalid token", Token: "12%7CQ2ZESjhE.....etc."

@emmagarland
Copy link
Contributor

emmagarland commented Dec 13, 2023

@DanDiplo I'm also currently trying to debug this issue on v10.8.2.

But mine says VerifyUserTokenAsync() failed with purpose: {purpose}

It happens when trying to invite/reinvite users.

Emma

@emmagarland
Copy link
Contributor

RE my comment above, please see #15045 for an update.

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

Successfully merging a pull request may close this issue.

5 participants