Skip to content
Snippets Groups Projects
Commit 61677dbb authored by torrespel's avatar torrespel
Browse files

fix uuid

parent 62da2036
Branches
Tags
2 merge requests!43Staging to Main for Release 1,!27Changes in Register
Pipeline #6508 failed with stages
in 3 minutes and 26 seconds
......@@ -23,7 +23,7 @@ class RegisterOperations:
name_space = uuid.UUID(self.config["register"]["register_uuid"])
user_uuid = str(uuid.uuid5(name_space,user_info["username"]))
user_info["user_uuid"] = user_uuid
user_info["uuid"] = user_uuid
user_info["onboarding_date"]=datetime.now()
obj = mycol.insert_one(user_info)
......@@ -40,7 +40,7 @@ class RegisterOperations:
if exist_user is None:
return jsonify("Not exister user with this credentials"), 400
access_token = create_access_token(identity=(username + " " + exist_user["user_uuid"]))
access_token = create_access_token(identity=(username + " " + exist_user["uuid"]))
cert_file = open("register_service/certs/ca_root.crt", 'rb')
ca_root = cert_file.read()
......
......@@ -416,6 +416,11 @@ Create User At Register
... password=${password}
... description=${description}
... email=${email}
... enterprise=enterprise
... country=Spain
... purpose=testing
... phone_number=123456789
... company_web=www.enterprise.com
${resp}= Post On Session register_session /createUser headers=${headers} json=${body}
Should Be Equal As Strings ${resp.status_code} 201
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment