スラッシュコマンドでワンタイムパスワードが要求できないバグを修正
This commit is contained in:
parent
421b1b48c7
commit
aa9379b2a6
1 changed files with 2 additions and 2 deletions
|
@ -648,7 +648,7 @@ class DL():
|
||||||
def pc_onetime_gen(self, **kwargs):
|
def pc_onetime_gen(self, **kwargs):
|
||||||
if kwargs.get("max_count") == None:
|
if kwargs.get("max_count") == None:
|
||||||
max_count = 1
|
max_count = 1
|
||||||
elif kwargs.get("max_count").isdecimal():
|
elif isinstance(kwargs.get("max_count"), int):
|
||||||
max_count = int(kwargs.get("max_count"))
|
max_count = int(kwargs.get("max_count"))
|
||||||
else:
|
else:
|
||||||
max_count = 1
|
max_count = 1
|
||||||
|
@ -700,7 +700,7 @@ class DL():
|
||||||
def device_onetime_gen(self, **kwargs):
|
def device_onetime_gen(self, **kwargs):
|
||||||
if kwargs.get("max_count") == None:
|
if kwargs.get("max_count") == None:
|
||||||
max_count = 1
|
max_count = 1
|
||||||
elif kwargs.get("max_count").isdecimal():
|
elif isinstance(kwargs.get("max_count"), int):
|
||||||
max_count = int(kwargs.get("max_count"))
|
max_count = int(kwargs.get("max_count"))
|
||||||
else:
|
else:
|
||||||
max_count = 1
|
max_count = 1
|
||||||
|
|
Loading…
Reference in a new issue