Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions OAuth2.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ public function getClientSideTranslationKeys(&$translationKeys)
$translationKeys[] = 'OAuth2_ClientSecretMaskedHelp';
$translationKeys[] = 'OAuth2_ClientSecretVisibleHelp';
$translationKeys[] = 'OAuth2_AdminDescriptionPlaceholder';
$translationKeys[] = 'OAuth2_AdminRotatedNotification';
}

public function getTablesInstalled(&$allTablesInstalled)
Expand Down
1 change: 1 addition & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"AdminCreated": "Client %s created.",
"AdminUpdated": "Client %s updated.",
"AdminRotated": "New secret for %s",
"AdminRotatedNotification": "The client secret has been rotated successfully. Copy the new secret now, as it is only shown once. If you lose access you can rotate the secret again, and your current secret will be invalidated.",
"AdminPaused": "Client %s has been paused successfully.",
"AdminResumed": "Client %s has been resumed successfully.",
"AdminDeleted": "Client %s has been deleted successfully.",
Expand Down
2 changes: 1 addition & 1 deletion vue/dist/OAuth2.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

105 changes: 51 additions & 54 deletions vue/dist/OAuth2.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vue/dist/OAuth2.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vue/dist/OAuth2.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vue/dist/OAuth2.umd.min.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions vue/src/OAuthClients/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ export default defineComponent({
}).then((response) => {
if (response?.secret) {
this.visibleSecret = response.secret;
const safeClientName = Matomo.helper.htmlEntities(this.form.name || this.clientId);
const rotatedMessage = this.translate('OAuth2_AdminRotated', safeClientName);
const secretMessage = this.translate('OAuth2_ClientSecretHelp');
const message = [rotatedMessage, secretMessage].filter(Boolean).join(' ');
const message = this.translate('OAuth2_AdminRotatedNotification');
this.showNotification(`<span class="success-msg-created">${message}</span>`, 'success', 'transient');
}
}).finally(() => {
Expand Down
Loading