diff --git a/dislocker_auth.py b/dislocker_auth.py index b2f10ba..a3f227a 100644 --- a/dislocker_auth.py +++ b/dislocker_auth.py @@ -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: