Strip command output

master
Tanner Collin 4 years ago
parent 6b841f3a78
commit 5458e4d408
  1. 1
      authserver/auth_functions.py
  2. 2
      authserver/server.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)

@ -13,7 +13,7 @@ def check_auth():
@app.route('/')
def index():
return '<i>SEE YOU SPACE SAMURAI...</i>'
return '<i>LIFE IS BUT A DREAM...</i>'
@app.route('/set-password', methods=['POST'])
def set_password():

Loading…
Cancel
Save