From 2dcfa5147608b4c3096b274f0d3939853aa19554 Mon Sep 17 00:00:00 2001
From: iKAN2025 <142475176+iKAN2025@users.noreply.github.com>
Date: Wed, 3 Jul 2024 16:06:03 -0700
Subject: [PATCH] profile
---
_includes/create_user.html | 61 +++-
navigation/backend.md | 557 +++++++++++++++++--------------------
navigation/profile.md | 320 ++++++++++++++++++++-
3 files changed, 626 insertions(+), 312 deletions(-)
diff --git a/_includes/create_user.html b/_includes/create_user.html
index 3d284102f..bfc65986a 100644
--- a/_includes/create_user.html
+++ b/_includes/create_user.html
@@ -3,6 +3,56 @@
Create User
+
@@ -25,17 +76,19 @@
async function submitForm() {
const form = document.getElementById('userForm');
const formData = new FormData(form);
-
+
+ // Collect selected sections
+
// Create the payload
const payload = {
name: formData.get('name'),
uid: formData.get('uid'),
password: formData.get('password'),
- kasm_server_needed: formData.get('kasm_server_needed') ? true : false
+ kasm_server_needed: formData.get('kasm_server_needed') === 'on',
};
try {
- const response = await fetch('http://127.0.0.1:8086/api/user', {
+ const response = await fetch('http://127.0.0.1:8086/api/users/', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
@@ -57,3 +110,5 @@