Loading services/register/register_service/core/register_operations.py +3 −1 Original line number Diff line number Diff line Loading @@ -73,10 +73,12 @@ class RegisterOperations: mycol = self.db.get_col_by_name(self.db.capif_users) try: current_app.logger.debug(f"Request Helper service to remove user related information") url = f"https://{self.config["ccf"]["url"]}{self.config["ccf"]["helper_remove_user"]}{uuid}" current_app.logger.debug(f"Url {url}") requests.delete(url, cert=("certs/superadmin.crt", "certs/superadmin.key"), verify="certs/ca_root.crt", timeout=int(os.getenv("TIMEOUT"))) current_app.logger.debug(f"Removing User with uuid {uuid} from db") mycol.delete_one({"uuid": uuid}) current_app.logger.debug(f"User with uuid {uuid} removed successfully") return jsonify(message="User removed successfully"), 204 Loading Loading
services/register/register_service/core/register_operations.py +3 −1 Original line number Diff line number Diff line Loading @@ -73,10 +73,12 @@ class RegisterOperations: mycol = self.db.get_col_by_name(self.db.capif_users) try: current_app.logger.debug(f"Request Helper service to remove user related information") url = f"https://{self.config["ccf"]["url"]}{self.config["ccf"]["helper_remove_user"]}{uuid}" current_app.logger.debug(f"Url {url}") requests.delete(url, cert=("certs/superadmin.crt", "certs/superadmin.key"), verify="certs/ca_root.crt", timeout=int(os.getenv("TIMEOUT"))) current_app.logger.debug(f"Removing User with uuid {uuid} from db") mycol.delete_one({"uuid": uuid}) current_app.logger.debug(f"User with uuid {uuid} removed successfully") return jsonify(message="User removed successfully"), 204 Loading