diff --git a/resources/views/server/settings.blade.php b/resources/views/server/settings.blade.php index 6b6175dd7..423a45405 100644 --- a/resources/views/server/settings.blade.php +++ b/resources/views/server/settings.blade.php @@ -54,6 +54,9 @@ @can('reset-sftp', $server)
+
+ +
@@ -130,7 +133,7 @@
@endcan @can('view-databases', $server) -
+
@@ -187,6 +190,23 @@ $(document).ready(function () { $(this).parent().parent().removeClass('has-error').addClass('has-success'); } }); + $('[data-action="generate-password"]').click(function(e){ + e.preventDefault(); + $.ajax({ + type: "GET", + url: "/password-gen/12", + headers: { + 'X-CSRF-TOKEN': '{{ csrf_token() }}' + }, + success: function(data) { + $("#gen_pass").html('Generated Password: ' + data).slideDown(); + $('input[name="sftp_pass"]').val(data); + return false; + } + }); + return false; + }); + }); @endsection