Skip to content

Commit

Permalink
Remove extra colon from 2fa prompt (#8)
Browse files Browse the repository at this point in the history
* Remove extra colon from 2fa prompt

The 2FA prompt was returning double colons instead of just 1. Fixed the
prompt so that it looks correct.
  • Loading branch information
EmilMaric authored May 9, 2021
1 parent a740cc6 commit 3daf08e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Using our `sample-target-allocations.csv` as above, a sample run could look as f
$ ws-rebalancer rebalance -t sample-target-allocations.csv --email test@gmail.com --2fa
Password:
Repeat for confirmation:
Enter 2FA code: : 12345
Enter 2FA code: 12345
0. non-registered
Please input the account you want: 0
Buy 5X MSFT @ 10.00 - New allocation 40.00%
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ws-rebalancer"
version = "1.0.0"
version = "1.0.1"
description = "A CLI tool that helps you rebalance your WealthSimple portfolios."
license = "MIT"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion ws_rebalancer/wealthsimple_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ def two_factor_function(self):
MFACode = ""
while not MFACode:
# Obtain user input and ensure it is not empty
MFACode = click.prompt("Enter 2FA code: ")
MFACode = click.prompt("Enter 2FA code")
return MFACode

0 comments on commit 3daf08e

Please sign in to comment.