-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 [Frontend] Redirect anonymous users to the "account request form" instead of asking them to send an email #7877
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
🎨 [Frontend] Redirect anonymous users to the "account request form" instead of asking them to send an email #7877
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the account request flash message for guest users so that, when configured, a link to the request-account form is displayed instead of prompting the user to send an e-mail.
- Updated flash message generation in osparc/utils/Utils.js to branch between a request form link and a mailto link.
- Introduced a new method (requestAccountLink) in osparc/store/Support.js to generate the request-account link with optional centering.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| services/static-webserver/client/source/class/osparc/utils/Utils.js | Adjusts message concatenation and adds a branch for the REQUEST_ACCOUNT_FORM action |
| services/static-webserver/client/source/class/osparc/store/Support.js | Adds the new requestAccountLink() method to build the request-account link |
|
@Mergifyio queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 73a45bc |
pcrespov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thx so much!
|



What do these changes do?
If the product is configured to request an account via the form, the "Request account" flash message shown to the guest users will show a link to the request-account form instead of the send-us-an-email approach.
When request account goes through the form:

When the product config expects an email:

Related issue/s
How to test
Dev-ops