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

update doc + add localhost in confirmation links if url is not set #7054

Merged
merged 3 commits into from Jul 23, 2020

Conversation

petersg83
Copy link
Contributor

fix #6909

Description of what you did:

  • Make the doc clearer
  • Change urls to have http://{host}:{port} instead of nothing if strapi.config.server.url is not set

@codecov
Copy link

codecov bot commented Jul 17, 2020

Codecov Report

Merging #7054 into master will increase coverage by 6.13%.
The diff coverage is 44.07%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7054      +/-   ##
==========================================
+ Coverage   20.05%   26.18%   +6.13%     
==========================================
  Files         858     1130     +272     
  Lines       12049    15404    +3355     
  Branches     1951     2435     +484     
==========================================
+ Hits         2416     4033    +1617     
- Misses       8062     9556    +1494     
- Partials     1571     1815     +244     
Flag Coverage Δ
#front 18.28% <44.07%> (+3.60%) ⬆️
#unit 52.94% <ø> (+10.49%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...admin/admin/src/components/ContainerFluid/index.js 66.66% <0.00%> (-33.34%) ⬇️
...pi-admin/admin/src/components/GlobalStyle/index.js 0.00% <ø> (ø)
.../src/components/LeftMenu/LeftMenuFooter/Wrapper.js 60.00% <ø> (ø)
...in/src/components/LeftMenu/LeftMenuFooter/index.js 66.66% <ø> (ø)
.../src/components/LeftMenu/LeftMenuHeader/Wrapper.js 60.00% <ø> (ø)
...in/src/components/LeftMenu/LeftMenuHeader/index.js 50.00% <ø> (ø)
...in/admin/src/components/LeftMenu/LeftMenuLink/A.js 12.50% <ø> (ø)
...c/components/LeftMenu/LeftMenuLink/LeftMenuIcon.js 50.00% <ø> (ø)
...c/components/LeftMenu/LeftMenuLinkHeader/Search.js 50.00% <ø> (ø)
...onents/LeftMenu/LeftMenuLinkHeader/SearchButton.js 100.00% <ø> (ø)
... and 656 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fd98b0...75be868. Read the comment docs.

@petersg83 petersg83 requested a review from Convly July 17, 2020 14:19
docs/v3.x/concepts/configurations.md Outdated Show resolved Hide resolved
@@ -643,7 +644,7 @@ module.exports = {
settings.message = await strapi.plugins['users-permissions'].services.userspermissions.template(
settings.message,
{
URL: `${strapi.config.server.url}/auth/email-confirmation`,
URL: `${getAbsoluteServerUrl(strapi.config)}/auth/email-confirmation`, // ICICI
Copy link
Member

Choose a reason for hiding this comment

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

remove comment

### Email validation

This action sends an email to the user with the link to confirm the user.
:::tip NOTE
In production, make sure the `url` config property is set. Otherwise the validation link will redirect to `localhost`. More info on the config [here](../concepts/configurations.html#server).
Copy link
Member

Choose a reason for hiding this comment

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

links should be pointing to .md files. vue-press generate the right urls on build

Signed-off-by: Pierre Noël <petersg83@gmail.com>
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Signed-off-by: Pierre Noël <petersg83@gmail.com>
Copy link
Member

@alexandrebodin alexandrebodin left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue: bug Issue reporting a bug source: plugin:users-permissions Source is plugin/users-permissions package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Email confirmation send wrong auth link
3 participants