exit cmd if user does not exist

add_server_msg
lza_menace 4 years ago
parent a009450caa
commit cf20b46d7d

@ -32,6 +32,7 @@ def reset_password(user_email, duration):
user = User.query.filter(User.email==user_email).first() user = User.query.filter(User.email==user_email).first()
if not user: if not user:
click.echo('[!] Email address does not exist!') click.echo('[!] Email address does not exist!')
return
pwr = PasswordReset( pwr = PasswordReset(
user=user.id, user=user.id,

Loading…
Cancel
Save