Skip to content

Commit e537f2c

Browse files
Users/mitsha microsoft/ctrl v issue fix (#933)
* Fix for not pasting the token * TrailingSpacesRemoved * Changing Line Length Size * Indent Fix * Message Sentence Split * Indent and Line Fix * Style Fix * Length check on token
1 parent fe2c9f9 commit e537f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azure-devops/azext_devops/dev/team/credentials.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _verify_token(organization, token):
7373
def _get_pat_token():
7474
try:
7575
token = prompt_pass('Token: ', confirm=False, help_string="The token (PAT) to authenticate with.")
76-
while not token:
76+
while len(token) <= 1:
7777
logger.warning('Please provide a PAT token.')
7878
logger.warning('If you are using CTRL + V to paste the token, it won\'t work '
7979
'on windows command prompt or powershell - '

0 commit comments

Comments
 (0)