support model and wait only for 30s for cookie used by csrf

This commit is contained in:
2025-07-10 19:58:31 +02:00
parent 3d05f739b4
commit c6ac87bdfa
6 changed files with 71 additions and 49 deletions
+3 -1
View File
@@ -83,7 +83,7 @@ class MongoDbManager:
result_list.append(ContactPojo.from_firestore_dict(document))
return result_list
def save_links_to_validate(self, link: str, mail_address: str, _all_contact_list: list):
def save_links_to_validate(self, link: str, mail_address: str, model: str, _all_contact_list: list):
collection_to_use = self.db[LINKS_TO_VALIDATE]
updated_at = time.strftime("%H:%M:%S", time.localtime())
_ip_country = "FR"
@@ -98,6 +98,7 @@ class MongoDbManager:
u'url': link,
u'email': mail_address,
u'serial': serial,
u'model': model,
u'ip_country': _ip_country,
"updated_at": updated_at
},
@@ -106,6 +107,7 @@ class MongoDbManager:
collection_to_use.replace_one(filter={'_id': link, }, replacement={
u'url': link,
u'serial': serial,
u'model': model,
u'ip_country': _ip_country,
"updated_at": updated_at
},