MJ-Prod commited on
Commit
725c71c
·
1 Parent(s): e6489d5

DeleteInfo

Browse files
Files changed (1) hide show
  1. app.py +22 -1
app.py CHANGED
@@ -3,6 +3,7 @@ load_dotenv()
3
 
4
  from fastapi.responses import StreamingResponse
5
  import json
 
6
  import requests
7
  from fastapi import FastAPI, HTTPException, Depends
8
  from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
@@ -143,4 +144,24 @@ def delete_account(
143
  import traceback
144
  print(f"DELETE ACCOUNT ERROR: {type(e).__name__}: {str(e)}")
145
  print(traceback.format_exc())
146
- raise HTTPException(status_code=500, detail=str(e))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
 
4
  from fastapi.responses import StreamingResponse
5
  import json
6
+ from fastapi.responses import HTMLResponse
7
  import requests
8
  from fastapi import FastAPI, HTTPException, Depends
9
  from fastapi.security import HTTPBearer, HTTPAuthorizationCredentials
 
144
  import traceback
145
  print(f"DELETE ACCOUNT ERROR: {type(e).__name__}: {str(e)}")
146
  print(traceback.format_exc())
147
+ raise HTTPException(status_code=500, detail=str(e))
148
+
149
+
150
+ @app.get("/delete", response_class=HTMLResponse)
151
+ def delete_info():
152
+ return """
153
+ <html>
154
+ <body style="font-family: sans-serif; max-width: 600px; margin: 50px auto; padding: 20px;">
155
+ <h1>Delete Your FISCAL Account</h1>
156
+ <p>You can delete your account directly from the FISCAL app:</p>
157
+ <ol>
158
+ <li>Open the FISCAL app</li>
159
+ <li>Tap the settings icon (wrench) in the top right</li>
160
+ <li>Tap <strong>Delete Account</strong></li>
161
+ <li>Confirm deletion</li>
162
+ </ol>
163
+ <p>This will permanently delete your account and all associated data.</p>
164
+ <p>For assistance, contact us at support@mjproductions.com</p>
165
+ </body>
166
+ </html>
167
+ """