Skip to content

Commit

Permalink
app: ask password only when credentials is initialized
Browse files Browse the repository at this point in the history
This commit fixes a regression introduced by #46

Fixes: #50
  • Loading branch information
László Vaskó committed Mar 30, 2021
1 parent 5033158 commit 4218819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openconnect_sso/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def _run(args, cfg):
elif args.user:
credentials = Credentials(args.user)

if not credentials.password:
if credentials and not credentials.password:
credentials.password = getpass.getpass(prompt=f"Password ({args.user}): ")
cfg.credentials = credentials

Expand Down

0 comments on commit 4218819

Please sign in to comment.