-
Notifications
You must be signed in to change notification settings - Fork 15
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
PP-12395: Revoke key functionality #4400
Conversation
08c4dba
to
fc871e4
Compare
fc871e4
to
74847f3
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.
Just needs the success notification
async function post (req, res) { | ||
if (req.body.revokeApiKey === 'Yes') { // pragma: allowlist secret | ||
await revokeKey(req.account.id, req.params.tokenLink) | ||
} |
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.
The figma says there should be a success notification if the key is revoked so something like [this] maybe?(
pay-selfservice/app/controllers/simplified-account/settings/team-members/invite/invite.controller.js
Line 55 in ebdea77
req.flash('messages', { state: 'success', icon: '✓', heading: `Team member invitation sent to ${req.body.invitedUserEmail}` }) |
we've decided that the success notification can be done in a separate PR
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 - success notification and validation to be done in a subsequent PR
* PP-12395: Cypress test for revoking api keys Cypress tests for #4400
The revoke key confirmation screen:
This PR does not include cypress tests, which will be in the next PR.