diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 6eb2e94828..52204e21c1 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -1012,7 +1012,7 @@ echo " ".$text['label-api_key'].""; echo " \n"; echo " "; - 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 "
".$text['description-api_key']."
\n"; } @@ -1025,7 +1025,7 @@ echo " ".$text['label-message_key'].""; echo " \n"; echo " "; - 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 "
".$text['description-message_key']."
\n"; } @@ -1086,4 +1086,4 @@ //include the footer require_once "resources/footer.php"; -?> \ No newline at end of file +?>