Looks like my caching prevention thing was broken? Oh well...

This commit is contained in:
Tracker-Friendly 2023-11-19 11:40:23 +00:00
parent 1de75c6d47
commit 2b5f253833
1 changed files with 2 additions and 4 deletions

6
app.py
View File

@ -1,4 +1,5 @@
from flask import Flask, render_template, request, redirect, url_for, session, make_response
from flask import Flask, render_template, request, redirect, url_for, session
import uuid
import subprocess
import re
import os
@ -84,9 +85,6 @@ def create_email_account(username, password):
@app.route('/')
def index():
# Prevent caching and bypassing the CAPTCHA
response.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
# Generate the CAPTCHA for the user
captcha_text = generate_captcha_text()
image = ImageCaptcha().generate(captcha_text)