This commit is contained in:
2025-01-11 00:53:16 +01:00
parent a5b6b54429
commit cc66878cf7
11 changed files with 304 additions and 1 deletions

View File

@@ -1,9 +1,14 @@
from django.http import JsonResponse
from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from .models import PasswordEntry
from .models import PasswordEntry, MasterHash
from .utils import authenticate, derive_key, encrypt_password, decrypt_password
import json
def list_users(request):
users = PasswordEntry.objects.all()
return render(request, 'wallet_api/list_users.html', {'users': users})
@csrf_exempt
def add_password_api(request):
if request.method == 'POST':