From 5458e4d4085e0b6fa2383839a836d3b3c930c5aa Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sun, 22 Nov 2020 01:30:02 +0000 Subject: [PATCH] Strip command output --- authserver/auth_functions.py | 1 + authserver/server.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/authserver/auth_functions.py b/authserver/auth_functions.py index e429384..9f89b65 100644 --- a/authserver/auth_functions.py +++ b/authserver/auth_functions.py @@ -27,6 +27,7 @@ def set_wiki_password(username, password): shell=False, text=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) output = result.stdout or result.stderr + output = output.strip() logger.info('Output: ' + output) diff --git a/authserver/server.py b/authserver/server.py index 69d7517..36d7fe3 100644 --- a/authserver/server.py +++ b/authserver/server.py @@ -13,7 +13,7 @@ def check_auth(): @app.route('/') def index(): - return 'SEE YOU SPACE SAMURAI...' + return 'LIFE IS BUT A DREAM...' @app.route('/set-password', methods=['POST']) def set_password():