Merge branch 'ent-11347-15666-mensaje-del-visor-de-tokens-de-api-tiene-mojibake' into 'develop'
Ent 11347 15666 mensaje del visor de tokens de api tiene mojibake See merge request artica/pandorafms!6084
This commit is contained in:
commit
a3ef14c50b
|
@ -1073,9 +1073,11 @@ if (!$new_user) {
|
||||||
'show_api_token',
|
'show_api_token',
|
||||||
false,
|
false,
|
||||||
sprintf(
|
sprintf(
|
||||||
'javascript:showAPIToken("%s", "%s")',
|
'javascript:showAPIToken("%s", "%s", "%s", "%s")',
|
||||||
__('API Token'),
|
__('API Token'),
|
||||||
base64_encode(__('Your API Token is:').' <br><span class="font_12pt bolder">'.users_get_API_token($id).'</span><br> '.__('Please, avoid share this string with others.')),
|
__('Your API Token is:'),
|
||||||
|
base64_encode(users_get_API_token($id)),
|
||||||
|
__('Please, avoid share this string with others.'),
|
||||||
),
|
),
|
||||||
[
|
[
|
||||||
'mode' => 'link',
|
'mode' => 'link',
|
||||||
|
|
|
@ -2230,10 +2230,16 @@ function renewAPIToken(title, message, form) {
|
||||||
* @param {string} title Title for show.
|
* @param {string} title Title for show.
|
||||||
* @param {string} message Base64 encoded message for show.
|
* @param {string} message Base64 encoded message for show.
|
||||||
*/
|
*/
|
||||||
function showAPIToken(title, message) {
|
function showAPIToken(title, message_a, token, message_b) {
|
||||||
|
var message =
|
||||||
|
message_a +
|
||||||
|
' <br><span class="font_12pt bolder">' +
|
||||||
|
atob(token) +
|
||||||
|
"</span><br> " +
|
||||||
|
message_b;
|
||||||
confirmDialog({
|
confirmDialog({
|
||||||
title: title,
|
title: title,
|
||||||
message: atob(message),
|
message: message,
|
||||||
hideCancelButton: true
|
hideCancelButton: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue