Skip to content

Improve registration and verification flow#13295

Merged
alecslupu merged 151 commits intodevelopfrom
feat/improve-registration-and-verification-flow
Dec 4, 2024
Merged

Improve registration and verification flow#13295
alecslupu merged 151 commits intodevelopfrom
feat/improve-registration-and-verification-flow

Conversation

@entantoencuanto
Copy link
Copy Markdown
Contributor

@entantoencuanto entantoencuanto commented Aug 21, 2024

🎩 What? Why?

This PR improves the verification and registration flow when a user or visitant tries to make an action which requires at least one verification:

  • Allows to store in the user extra data information about the action, resource with pending verifications. Some more data can be stored if required, the path to redirect after completing the verification flow and the permissions holder for actions not related with a specific resource of a component (for example, actions of initiatives or create resource action in a component)
  • Changes the first login page to display the status of the verifications required to allow the pending action
  • If a visitant is not signed in, after signing in or signing up and confirming email is redirected to the pending action onboarding page with the verifications required to authorize the action
  • If there are more than one verification required to authorize an action after clicking on the button or link related to the action the user is redirected to the pending action onboarding and redirected to the same page after completing each verification if there are remaining pending verifications.
  • After completing all the verifications if the action is authorized the user is redirected to the redirect path stored in its onboarding extended data or the resource path if the redirect path is missing with a success flash message
  • If any check implies that the user does not have permission to perform the action, he is redirected to the resource with a forbidden action message.
  • When the user browses the application and has an action pending of one or more authorizations a callout message appears with a link to complete the authorization flow
  • The user is allowed to remove the data about the pending authorization flow if closes the callout message.
  • Changes the authorized_to method to prepend a "Verify your account to ..." in the text of the button or link if not provided via block

📌 Related Issues

Link your PR to an issue

Testing

♥️ Thank you!

github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
@entantoencuanto entantoencuanto changed the title Feat/improve registration and verification flow Improve registration and verification flow Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 21, 2024
github-actions[bot]
github-actions bot previously approved these changes Aug 22, 2024
The resource locator fails trying to generate the path of a project
without including the budget it belongs to. The error is fixed by
including the redirect_path for onboarding directly as data attribute
github-actions[bot]
github-actions bot previously approved these changes Oct 31, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 6, 2024
…n-flow

* develop:
  Update UI design of detail page (#13356)
  Fix newsletter subscriber count (#13471)
  Fix editor image routing (#12683)
  Fix issues with the budgets proposals import (#12655)
  Fix initiative form is not taking into account the scope selected (#13598)
  Enable geolocation for address field in proposal form (#13423)
github-actions[bot]
github-actions bot previously approved these changes Nov 6, 2024
ResourceLocatorPresenter fails trying to generate the path of some
resources like projects in budgets. This commit avoids the exceptions
produced
github-actions[bot]
github-actions bot previously approved these changes Nov 13, 2024
@entantoencuanto
Copy link
Copy Markdown
Contributor Author

Hi, @alecslupu , I think this PR is ready to review. I'm working on a PR which depends on it and I'm going to start with other depending on the new one. Over the past few days I've added a few commits that fix bugs and solved conflicts with develop, but the overall behavior of the functionality has remained the same.

Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the "example authorization" is being set like this:
image

Then the meeting page will raise the following error:
image

@entantoencuanto
Copy link
Copy Markdown
Contributor Author

If the "example authorization" is being set like this: image

Then the meeting page will raise the following error: image

Yes, it's a bug of the dummy authorization handler when no scope is selected. I have fixed it in the next PR #13579 but I can cherry-pick the fix

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
github-actions[bot]
github-actions bot previously approved these changes Nov 21, 2024
@alecslupu
Copy link
Copy Markdown
Contributor

While reviewing the functionality, when I have a meeting with external registratiions enabled, and when I click on "Register" i am being redirected to authorization screen, and after filling in the authorization data, i am being redirected to external website.

IMO, if the meeting has an external registration url, maybe we could bypass the authorization? I would really like to know @decidim/product on this matter :)

Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks Promissing. A few small changes / things to clarify.

87 / 87

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Merging with Codecov pipeline failed.

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

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Improve registration and verification flow

7 participants