forked from rDrama/rDrama
master
parent
3a4aa3f3af
commit
fbd815f54e
|
@ -1325,11 +1325,6 @@
|
||||||
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
|
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
|
||||||
<priority>0.64</priority>
|
<priority>0.64</priority>
|
||||||
</url>
|
</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>
|
<url>
|
||||||
<loc>https://rdrama.net/signup?redirect=/marseys?</loc>
|
<loc>https://rdrama.net/signup?redirect=/marseys?</loc>
|
||||||
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
|
<lastmod>2022-06-10T23:42:26+00:00</lastmod>
|
||||||
|
|
|
@ -72,11 +72,8 @@ def marsey_list():
|
||||||
|
|
||||||
return jsonify(emojis)
|
return jsonify(emojis)
|
||||||
|
|
||||||
@app.get('/rules')
|
|
||||||
@app.get('/sidebar')
|
@app.get('/sidebar')
|
||||||
@app.get('/logged_out/rules')
|
@auth_desired
|
||||||
@app.get('/logged_out/sidebar')
|
|
||||||
@auth_desired_with_logingate
|
|
||||||
def sidebar(v):
|
def sidebar(v):
|
||||||
return render_template('sidebar.html', v=v)
|
return render_template('sidebar.html', v=v)
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
required="">
|
required="">
|
||||||
<div class="custom-control custom-checkbox mt-4">
|
<div class="custom-control custom-checkbox mt-4">
|
||||||
<input autocomplete="off" type="checkbox" class="custom-control-input" id="termsCheck" required>
|
<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>
|
</div>
|
||||||
|
|
||||||
{% if hcaptcha %}
|
{% if hcaptcha %}
|
||||||
|
|
|
@ -5,7 +5,7 @@ from files.__main__ import app
|
||||||
# these tests require `docker-compose up` first
|
# these tests require `docker-compose up` first
|
||||||
|
|
||||||
def test_rules():
|
def test_rules():
|
||||||
response = app.test_client().get("/logged_out/rules")
|
response = app.test_client().get("/sidebar")
|
||||||
assert response.status_code == 200
|
assert response.status_code == 200
|
||||||
assert response.text.startswith("<!DOCTYPE html>")
|
assert response.text.startswith("<!DOCTYPE html>")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue