Aevann1 2022-10-06 08:26:10 +02:00
parent 3a4aa3f3af
commit fbd815f54e
4 changed files with 3 additions and 11 deletions

View File

@ -1325,11 +1325,6 @@
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
<priority>0.64</priority>
</url>
<url>
<loc>https://rdrama.net/logged_out/sidebar</loc>
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
<priority>0.64</priority>
</url>
<url>
<loc>https://rdrama.net/signup?redirect=/marseys?</loc>
<lastmod>2022-06-10T23:42:26+00:00</lastmod>

View File

@ -72,11 +72,8 @@ def marsey_list():
return jsonify(emojis)
@app.get('/rules')
@app.get('/sidebar')
@app.get('/logged_out/rules')
@app.get('/logged_out/sidebar')
@auth_desired_with_logingate
@auth_desired
def sidebar(v):
return render_template('sidebar.html', v=v)

View File

@ -112,7 +112,7 @@
required="">
<div class="custom-control custom-checkbox mt-4">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="termsCheck" required>
<label class="custom-control-label terms" for="termsCheck">I accept the <a href="/logged_out/sidebar">rules</a></label>
<label class="custom-control-label terms" for="termsCheck">I accept the <a href="/sidebar">rules</a></label>
</div>
{% if hcaptcha %}

View File

@ -5,7 +5,7 @@ from files.__main__ import app
# these tests require `docker-compose up` first
def test_rules():
response = app.test_client().get("/logged_out/rules")
response = app.test_client().get("/sidebar")
assert response.status_code == 200
assert response.text.startswith("<!DOCTYPE html>")