Skip to content

Commit

Permalink
return added after finish() in two places
Browse files Browse the repository at this point in the history
Same problem as with send_error(): the function keeps on running unless explicitly told not to.
  • Loading branch information
talavis committed Dec 31, 2018
1 parent fd7456b commit 35d4b5f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 35d4b5f

Please sign in to comment.