|
@@ -1012,7 +1012,7 @@
|
|
|
echo " <td class='vncell' valign='top'>".$text['label-api_key']."</td>";
|
|
|
echo " <td class='vtable'>\n";
|
|
|
echo " <input type='text' class='formfld' style='width: 250px;' name='api_key' id='api_key' value=\"".escape($api_key)."\" >";
|
|
|
- echo button::create(['type'=>'button','label'=>$text['button-generate'],'icon'=>'key','onclick'=>"document.getElementById('api_key').value = '".generate_password()."';"]);
|
|
|
+ echo button::create(['type'=>'button','label'=>$text['button-generate'],'icon'=>'key','onclick'=>"document.getElementById('api_key').value = '".generate_password(32,3)."';"]);
|
|
|
if (strlen($text['description-api_key']) > 0) {
|
|
|
echo " <br />".$text['description-api_key']."<br />\n";
|
|
|
}
|
|
@@ -1025,7 +1025,7 @@
|
|
|
echo " <td class='vncell' valign='top'>".$text['label-message_key']."</td>";
|
|
|
echo " <td class='vtable'>\n";
|
|
|
echo " <input type='text' class='formfld' style='width: 250px;' name='message_key' id='message_key' value=\"".($message_key ? escape($message_key) : escape($user_settings["message"]["key"]["text"]))."\" >";
|
|
|
- echo button::create(['type'=>'button','label'=>$text['button-generate'],'icon'=>'key','onclick'=>"document.getElementById('message_key').value = '".generate_password()."';"]);
|
|
|
+ echo button::create(['type'=>'button','label'=>$text['button-generate'],'icon'=>'key','onclick'=>"document.getElementById('message_key').value = '".generate_password(32,3)."';"]);
|
|
|
if (strlen($text['description-message_key']) > 0) {
|
|
|
echo " <br />".$text['description-message_key']."<br />\n";
|
|
|
}
|
|
@@ -1086,4 +1086,4 @@
|
|
|
//include the footer
|
|
|
require_once "resources/footer.php";
|
|
|
|
|
|
-?>
|
|
|
+?>
|