From 35d4b5fde25178ae220cde0bf48c65b14fb02f7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20=C3=96stberg?= Date: Mon, 31 Dec 2018 13:58:29 +0100 Subject: [PATCH] return added after finish() in two places Same problem as with send_error(): the function keeps on running unless explicitly told not to. --- backend/application.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/application.py b/backend/application.py index decaf2428..8614dd026 100644 --- a/backend/application.py +++ b/backend/application.py @@ -575,6 +575,7 @@ def get(self): """ if db.get_admin_datasets(self.current_user).count() <= 0: self.finish({'user':None, 'expires':None, 'password':None}) + return password = None username = None @@ -600,6 +601,7 @@ def post(self): """ if db.get_admin_datasets(self.current_user).count() <= 0: self.finish({'user':None, 'expires':None, 'password':None}) + return # Create a new password username = "_".join(self.current_user.name.split()) + "_sftp"