Domain fix

This commit is contained in:
Andrew Dinh 2021-02-23 16:52:58 -08:00
parent 6a4fb784dc
commit e6db44dc17
Signed by: andrewkdinh
GPG Key ID: 2B557D93C6C08B86
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ def index():
print(e) print(e)
return render_template("message.html", message="Invalid data") return render_template("message.html", message="Invalid data")
captcha = captcha_get(ttl = 300) captcha = captcha_get(ttl = 300)
return render_template("index.html", polynomial = POLYNOMIAL, captcha_id = captcha[0], captcha_png = captcha[1]) return render_template("index.html", polynomial = POLYNOMIAL, domain=DOMAIN, captcha_id = captcha[0], captcha_png = captcha[1])
@app.route("/<attempt_num>", methods=["GET", "POST"]) @app.route("/<attempt_num>", methods=["GET", "POST"])
def attempt(attempt_num): def attempt(attempt_num):

View File

@ -34,7 +34,7 @@
<input type="hidden" name="captcha-id" value="{{ captcha_id }}"> <input type="hidden" name="captcha-id" value="{{ captcha_id }}">
<button type="submit">Validate</button> <button type="submit">Validate</button>
</form> </form>
<p>Once you get the value of f(0), go to https://rip.andrewkdinh.com/f(0)</p> <p>Once you get the value of f(0), go to {{ domain }}/f(0)</p>
<hr /> <hr />
<p>Here's resources with more information (for now, just contact info for others with a coordinate). Password should've been given to you</p> <p>Here's resources with more information (for now, just contact info for others with a coordinate). Password should've been given to you</p>