From cf20b46d7d40efdcb72677b937cdc953f5710706 Mon Sep 17 00:00:00 2001 From: lza_menace Date: Thu, 6 May 2021 23:51:06 -0700 Subject: [PATCH] exit cmd if user does not exist --- wowstash/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wowstash/cli.py b/wowstash/cli.py index f67e947..e2d35eb 100644 --- a/wowstash/cli.py +++ b/wowstash/cli.py @@ -32,6 +32,7 @@ def reset_password(user_email, duration): user = User.query.filter(User.email==user_email).first() if not user: click.echo('[!] Email address does not exist!') + return pwr = PasswordReset( user=user.id,