繁体   English   中英

使用python jira模块在jira中对用户进行身份验证时,如何继续询问用户名和密码直到正确?

[英]How to keep asking for user name and password until correct while authenticating the user in jira using python jira module?

我正在使用 python jira 模块。 现在,当用户输入 jira 用户名和密码时,将使用 JIRA(option,basic_auth = (username,password)) 对其进行身份验证。 如果输入的用户名或密码不正确,我如何继续要求输入用户名或密码?

我对 jira 库不太了解,但实际上,它应该是这样的:

username,passwd=input().split()
while not is_correct(username,passwd):
    username,passwd=input().split()
# .. Do something with username and passwd ..

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM