From bd4ef77eb2d76c0fee1be660b219adbd871cc76e Mon Sep 17 00:00:00 2001 From: Jonas Leder <jonas@jonasled.de> Date: Tue, 26 Nov 2019 21:24:05 +0100 Subject: [PATCH] removed apikey from links page --- main.py | 2 +- templates/editEntries.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 73d2ce6..d20af86 100644 --- a/main.py +++ b/main.py @@ -307,7 +307,7 @@ def ownLinks(): if(len(entriesList) == 0): response = 'you have no shorten links.' #If user has no shorten links make this message except: abort(500) #Shouldn't happen, 500 means internal server error - return render_template('editEntries.html', content=response, loginbar=loginbar, cookieNotice=cookieNotice, apikey="your api key: " + sAPI.dumps(userID)) #Put the table and the login div inside the template and server it to the user + return render_template('editEntries.html', content=response, loginbar=loginbar, cookieNotice=cookieNotice) #Put the table and the login div inside the template and server it to the user @app.route('/user/delete') #This function is called if a user deletes an entrie diff --git a/templates/editEntries.html b/templates/editEntries.html index 9e50fc2..bbd79ac 100644 --- a/templates/editEntries.html +++ b/templates/editEntries.html @@ -15,7 +15,6 @@ <div class="form"> {{content | safe}} <p><a href="/">back</a></p> - <p class="message">{{apikey}}</p> </div> </div> <!-- ui-dialog --> -- GitLab