Changeset 76ebb1b in OpenWorkouts-current for ow/utilities.py
- Timestamp:
- Feb 18, 2019, 12:54:45 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 4af38e8
- Parents:
- d6da99e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ow/utilities.py
rd6da99e r76ebb1b 8 8 from decimal import Decimal 9 9 from shutil import copyfileobj 10 from uuid import uuid4 10 11 11 12 from unidecode import unidecode … … 20 21 21 22 log = logging.getLogger(__name__) 23 24 25 def get_verification_token(): 26 """ 27 Generate a new uuid4 verification token we can give a user for 28 verification purposes. 29 uuid4 is a standard that generates a randomly generated token, 30 optimized for a very low chance of collisions. But even if 31 we had a collision, it wouldn't matter - it's simple some users 32 getting the same token in their verification mail. 33 """ 34 return uuid4() 22 35 23 36
Note: See TracChangeset
for help on using the changeset viewer.