show partial access key in main instance editor, better key input checking
This commit is contained in:
parent
323103323b
commit
258d48a047
|
@ -1019,7 +1019,7 @@
|
||||||
print __("Access key:") . " ";
|
print __("Access key:") . " ";
|
||||||
|
|
||||||
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
||||||
placeHolder=\"".__("Access key")."\"
|
placeHolder=\"".__("Access key")."\" regExp='\w{40}'
|
||||||
style=\"width: 20em\" name=\"access_key\" id=\"instance_add_key\"
|
style=\"width: 20em\" name=\"access_key\" id=\"instance_add_key\"
|
||||||
value=\"$access_key\">";
|
value=\"$access_key\">";
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@
|
||||||
print __("Access key:") . " ";
|
print __("Access key:") . " ";
|
||||||
|
|
||||||
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
print "<input dojoType=\"dijit.form.ValidationTextBox\" required=\"1\"
|
||||||
placeHolder=\"".__("Access key")."\"
|
placeHolder=\"".__("Access key")."\" regExp='\w{40}'
|
||||||
style=\"width: 20em\" name=\"access_key\" id=\"instance_edit_key\"
|
style=\"width: 20em\" name=\"access_key\" id=\"instance_edit_key\"
|
||||||
value=\"$access_key\">";
|
value=\"$access_key\">";
|
||||||
|
|
||||||
|
@ -143,6 +143,7 @@
|
||||||
print "<tr class=\"title\">
|
print "<tr class=\"title\">
|
||||||
<td align='center' width=\"5%\"> </td>
|
<td align='center' width=\"5%\"> </td>
|
||||||
<td width=''><a href=\"#\" onclick=\"updateInstanceList('access_url')\">".__('Instance URL')."</a></td>
|
<td width=''><a href=\"#\" onclick=\"updateInstanceList('access_url')\">".__('Instance URL')."</a></td>
|
||||||
|
<td width='20%'><a href=\"#\" onclick=\"updateInstanceList('access_key')\">".__('Access key')."</a></td>
|
||||||
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('last_connected')\">".__('Last connected')."</a></td>
|
<td width='20%'><a href=\"#\" onclick=\"updateUsersList('last_connected')\">".__('Last connected')."</a></td>
|
||||||
</tr>";
|
</tr>";
|
||||||
|
|
||||||
|
@ -163,7 +164,11 @@
|
||||||
|
|
||||||
$onclick = "onclick='editInstance($id, event)' title='".__('Click to edit')."'";
|
$onclick = "onclick='editInstance($id, event)' title='".__('Click to edit')."'";
|
||||||
|
|
||||||
|
$access_key = mb_substr($line['access_key'], 0, 4) . '...' .
|
||||||
|
mb_substr($line['access_key'], -4);
|
||||||
|
|
||||||
print "<td $onclick>" . htmlspecialchars($line['access_url']) . "</td>";
|
print "<td $onclick>" . htmlspecialchars($line['access_url']) . "</td>";
|
||||||
|
print "<td $onclick>" . htmlspecialchars($access_key) . "</td>";
|
||||||
print "<td $onclick>" . htmlspecialchars($line['last_connected']) . "</td>";
|
print "<td $onclick>" . htmlspecialchars($line['last_connected']) . "</td>";
|
||||||
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
Loading…
Reference in New Issue