registerのワンタイムパスワードをstr型に指定
This commit is contained in:
parent
bd1aa2243c
commit
665b53c28d
1 changed files with 1 additions and 1 deletions
|
@ -205,7 +205,7 @@ auth = Auth(server_config["db"]["host"], server_config["db"]["db_name"], server_
|
|||
def register():
|
||||
pc_number = int(request.json.get('pc_number'))
|
||||
pc_uuid = str(request.json.get('pc_uuid'))
|
||||
onetime_password = int(request.json.get('onetime'))
|
||||
onetime_password = str(request.json.get('onetime'))
|
||||
|
||||
if os.path.isfile(onetime_config_path):
|
||||
with open(onetime_config_path, "r") as r:
|
||||
|
|
Loading…
Reference in a new issue