Added 7 days login token option, #3742

This commit is contained in:
Ylian Saint-Hilaire 2022-03-08 11:49:26 -08:00
parent 7c592b07b1
commit 96b08924c3
5 changed files with 290 additions and 239 deletions

View File

@ -160,7 +160,7 @@
"agent": "Agent",
"group": "Groupe d'appareils",
"url": "URL du serveur",
"meshName": "Nom du maillage",
"meshName": "Nom du groupe",
"meshId": "Identifiant de groupe",
"serverId": "Identifiant du serveur",
"setup": "Configuration",

View File

@ -34,7 +34,7 @@
</area-linux>
<area-assistant>
<p style="margin-left:30px">
<a href="[[[SERVERURL]]]/meshagents?id=10006&amp;meshid=[[[MESHIDHEX]]]&amp;tag=mailto:[[[EMAIL]]]">Click here to download the MeshCentral Assistant for Windows.</a>
<a href="[[[SERVERURL]]]/meshagents?id=10006&amp;meshid=[[[MESHIDHEX]]]&amp;tag=mailto:[[[EMAIL]]]">Cliquez ici pour télécharger l'assistant Meshcentral pour Windows.</a>
</p>
</area-assistant>
<area-link>

View File

@ -27,7 +27,7 @@ Pour Linux, copiez et collez les éléments suivants dans un terminal pour insta
~
~</area-linux>
~<area-assistant>
For MeshCentral Assistant on Windows, nagivate to the following link to complete the process:
Pour l'assistant MeshCentral sous Windows, cliquez sur le lien suivant pour compléter le processus :
~
~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]
~

File diff suppressed because it is too large Load Diff

View File

@ -11412,7 +11412,7 @@
function account_createLoginToken() {
if (xxdialogMode) return false;
var y = '', x = "Create a temporary username and password that can be used as alternative login to your account. This is useful for allowing tools or other services to access your account." + '<br /><br />';
var options = { 0 : "Unlimited", 1 : "1 minute", 5 : "5 minutes", 10 : "10 minutes", 15 : "15 minutes", 30 : "30 minutes", 45 : "45 minutes", 60 : "60 minutes", 120 : "2 hours", 240 : "4 hours", 480 : "8 hours", 720 : "12 hours", 960 : "16 hours", 1440 : "24 hours", 2880 : "2 days", 5760 : "4 days" }
var options = { 0 : "Unlimited", 1 : "1 minute", 5 : "5 minutes", 10 : "10 minutes", 15 : "15 minutes", 30 : "30 minutes", 45 : "45 minutes", 60 : "60 minutes", 120 : "2 hours", 240 : "4 hours", 480 : "8 hours", 720 : "12 hours", 960 : "16 hours", 1440 : "24 hours", 2880 : "2 days", 5760 : "4 days", 10080 : "7 days" }
for (var i in options) { y += '<option value=' + i + '>' + options[i] + '</option>'; }
x += addHtmlValue("Token Name", '<input class=boxsize id=d2tokenName style=width:250px maxlength=100 type=text onchange=account_createLoginTokenValidate() onkeyup=account_createLoginTokenValidate() />');
x += addHtmlValue("Expire Time", '<select class=boxsize id=d2tokenExpire style=width:250px>' + y + '</select>');