Major addition. User register, login and update is now functional on frontend, removed UUID5 for UUID4 for users and many more changes
This commit is contained in:
1 parent
d87c280109
commit
d0690f2f06
67 files changed
+3389
-1066
No files matched your search
@@ -1,6 +1,12 @@
|
||||
import logging
|
||||
from typing import Optional
|
||||
from uuid import uuid5, UUID, NAMESPACE_DNS
|
||||
from uuid import NAMESPACE_DNS, UUID, uuid5
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def generate_user_uuid5(email: str, shop_id: Optional[int]) -> UUID:
|
||||
unique_string = f"{email}-{shop_id}" if shop_id else email
|
||||
return uuid5(NAMESPACE_DNS, unique_string)
|
||||
generated_uuid = uuid5(NAMESPACE_DNS, unique_string)
|
||||
logger.debug("Generated user UUID5 - %s", generated_uuid)
|
||||
return generated_uuid
|
||||
Reference in new issue
Block a user