mirror of
https://github.com/jackeilles/xygt.git
synced 2024-11-21 22:32:39 +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')
|
||||
def privacy():
|
||||
return "placeholder"
|
||||
return render_template('privacy.html')
|
||||
|
||||
@app.route('/faq')
|
||||
def faq():
|
||||
|
@ -122,7 +122,11 @@ def contact():
|
|||
|
||||
@app.route('/transparency')
|
||||
def transparency():
|
||||
return "placeholder"
|
||||
return render_template('transparency.html')
|
||||
|
||||
@app.route('/transparency/public')
|
||||
def public():
|
||||
return "Nothing here yet."
|
||||
|
||||
@app.route('/<id>')
|
||||
def getData(id):
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
<input type="file" name="file" id="file">
|
||||
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
||||
{% 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 %}
|
||||
<input type="submit" value="Upload">
|
||||
|
@ -39,7 +39,8 @@
|
|||
<input type="url" name="url" placeholder="URL to shorten">
|
||||
<input type="number" name="retention" placeholder="Retention (in seconds)">
|
||||
{% 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 %}
|
||||
<input type="submit" value="Shorten!">
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue