mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-08 16:02:37 +01:00
fix issue with userid not passing
This commit is contained in:
parent
b590db5623
commit
4aa24345fc
2 changed files with 9 additions and 4 deletions
|
@ -110,7 +110,7 @@ def tos():
|
||||||
|
|
||||||
@app.route('/privacy')
|
@app.route('/privacy')
|
||||||
def privacy():
|
def privacy():
|
||||||
return "placeholder"
|
return render_template('privacy.html')
|
||||||
|
|
||||||
@app.route('/faq')
|
@app.route('/faq')
|
||||||
def faq():
|
def faq():
|
||||||
|
@ -122,7 +122,11 @@ def contact():
|
||||||
|
|
||||||
@app.route('/transparency')
|
@app.route('/transparency')
|
||||||
def transparency():
|
def transparency():
|
||||||
return "placeholder"
|
return render_template('transparency.html')
|
||||||
|
|
||||||
|
@app.route('/transparency/public')
|
||||||
|
def public():
|
||||||
|
return "Nothing here yet."
|
||||||
|
|
||||||
@app.route('/<id>')
|
@app.route('/<id>')
|
||||||
def getData(id):
|
def getData(id):
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<input type="file" name="file" id="file">
|
<input type="file" name="file" id="file">
|
||||||
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<input type="hidden" name="userid" value="{{ current_user.id }}">
|
<input type="hidden" name="userid" value="{{ current_user.userid }}">
|
||||||
<input type="hidden" name="idpass" value="{{ current_user.idpass }}">
|
<input type="hidden" name="idpass" value="{{ current_user.idpass }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input type="submit" value="Upload">
|
<input type="submit" value="Upload">
|
||||||
|
@ -39,7 +39,8 @@
|
||||||
<input type="url" name="url" placeholder="URL to shorten">
|
<input type="url" name="url" placeholder="URL to shorten">
|
||||||
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<input type="hidden" name="userid" value="{{ current_user.id }}">
|
<input type="hidden" name="userid" value="{{ current_user.userid }}">
|
||||||
|
<input type="hidden" name="idpass" value="{{ current_user.idpass }}">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<input type="submit" value="Shorten!">
|
<input type="submit" value="Shorten!">
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in a new issue