Looks like my caching prevention thing was broken? Oh well...
This commit is contained in:
parent
1de75c6d47
commit
2b5f253833
6
app.py
6
app.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue