Security fixes

Patched some security holes with GetUser and UpdateUser, did some minor cleanup
This commit is contained in:
armisss4 2022-12-29 12:54:31 +02:00 committed by GitHub
parent df10417668
commit 4b5057e658
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 40 additions and 28 deletions

View file

@ -80,10 +80,9 @@ function renderClientList(data) {
function renderUserList(data) {
$.each(data, function(index, obj) {
// render client status css tag style
let clientStatusHtml = '>'
// render client html content
// render user html content
let html = `<div class="col-sm-6 col-md-6 col-lg-4" id="user_${obj.username}">
<div class="info-box">
<div class="info-box-content">
@ -101,7 +100,7 @@ function renderUserList(data) {
</div>
</div>`
// add the client html elements to the list
// add the user html elements to the list
$('#users-list').append(html);
});
}