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
Add confirmationToken to user for email confirmation #8365
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8365 +/- ##
==========================================
- Coverage 33.20% 33.19% -0.01%
==========================================
Files 1220 1220
Lines 13616 13618 +2
Branches 1356 1357 +1
==========================================
Hits 4521 4521
- Misses 8211 8212 +1
- Partials 884 885 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
c132b90
to
ae61688
Compare
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.
Migration guide looks good to me.
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
529d147
ae61688
to
529d147
Compare
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.
Works well on my side. Just a typo and a suggestion.
const decodedToken = await strapi.plugins['users-permissions'].services.jwt.verify( | ||
params.confirmation | ||
); | ||
const { user: userServie, jwt: jwtService } = strapi.plugins['users-permissions'].services; |
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.
userService
} | ||
``` | ||
|
||
That's it now you can follow the basic [version update guide](../guides/update-version.md). |
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.
What about adding a coma : That's it, now you can follow the basic ...
?
Signed-off-by: Alexandre Bodin <bodin.alex@gmail.com>
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.
LGTM !
This pull request has been mentioned on Strapi Community. There might be relevant details there: https://forum.strapi.io/t/new-release-strapi-v3-2-4-security-fix/509/1 |
Signed-off-by: Alexandre Bodin bodin.alex@gmail.com
What does it do?
Adds a confirmationToken to use in the email confirmation instead of a valid jwt token.
We will need to explain how to add this field manually for users that did extend the User model. Will create a specific migration guide