registerのワンタイムパスワードをstr型に指定

This commit is contained in:
suti7yk5032 2024-08-25 23:58:53 +09:00
parent bd1aa2243c
commit 665b53c28d

View file

@ -205,7 +205,7 @@ auth = Auth(server_config["db"]["host"], server_config["db"]["db_name"], server_
def register(): def register():
pc_number = int(request.json.get('pc_number')) pc_number = int(request.json.get('pc_number'))
pc_uuid = str(request.json.get('pc_uuid')) 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): if os.path.isfile(onetime_config_path):
with open(onetime_config_path, "r") as r: with open(onetime_config_path, "r") as r: