feat: apply various dashboard and auth fixes including demo trials, settings UI, and signup options

This commit is contained in:
2026-09-23 16:38:49 +05:30
parent 86a2749360
commit 1d9cdd3f33
18 changed files with 435 additions and 147 deletions

12
test.py Normal file
View File

@@ -0,0 +1,12 @@
import urllib.request, json
req = urllib.request.Request('http://localhost:8000/api/auth/login', data=b'{"email":"demo@pragativeer.com","password":"Pv9#kL2$mQ8!vX4@"}', headers={'Content-Type': 'application/json'})
res = urllib.request.urlopen(req)
data = json.loads(res.read().decode())
token = data['token']
req2 = urllib.request.Request('http://localhost:8000/api/admin/settings', headers={'Authorization': 'Bearer ' + token})
try:
res2 = urllib.request.urlopen(req2)
print("SETTINGS:", res2.read().decode())
except urllib.error.HTTPError as e:
print("ERR SETTINGS:", e.code, e.read().decode())