Add user authentication and registration features

- Implement login and registration HTML templates for user authentication.
- Create user management functions in user.py for handling user data, including adding, deleting, and updating users.
- Introduce password hashing and strength checking for secure user credentials.
- Add terms of service and privacy policy pages to the website.
- Enhance main page with dynamic content based on user session status.
This commit is contained in:
Maximilian G.
2026-03-23 17:39:26 +00:00
committed by GitHub
parent 316581dd8f
commit 283a37638b
20 changed files with 4293 additions and 5 deletions
+5 -5
View File
@@ -22,7 +22,7 @@ import json
root = Path.cwd()
settings_path = root / "settings.json"
version_file = root / "Code" / "version.txt"
version_file = root / "version.txt"
version = "0.1.0"
if settings_path.is_file():
@@ -40,10 +40,10 @@ if settings_path.is_file():
version_file.write_text(f"{version}\n", encoding="utf-8")
print(f"Prepared {version_file} with version: {version}")
PY
python -m nuitka --standalone --follow-imports --include-data-dir=Code/templates=templates --include-data-dir=Code/static=static --include-data-file=licenses.json=licenses.json --assume-yes-for-downloads --output-dir=Inventarsystem_Lizenz_Verwaltung --remove-output Code/main.py
if [[ -x "./build/main.dist/main.bin" ]]; then
./build/main.dist/main.bin
python -m nuitka --standalone --follow-imports --include-data-dir=templates=templates --include-data-dir=static=static --include-data-file=licenses.json=licenses.json --assume-yes-for-downloads --output-dir=Inventarsystem_Lizenz_Verwaltung --remove-output main.py
if [[ -x "./Inventarsystem_Lizenz_Verwaltung/main.bin" ]]; then
./Inventarsystem_Lizenz_Verwaltung/main.bin
else
echo "Build step finished but executable not found at ./build/main.dist/main.bin"
echo "Build step finished but executable not found at ./Inventarsystem_Lizenz_Verwaltung/main.bin"
exit 1
fi