jira-17 add junior and send invite mail

This commit is contained in:
jain
2023-07-12 16:24:30 +05:30
parent 33101811ff
commit a041028840
13 changed files with 235 additions and 8 deletions

View File

@ -6,6 +6,7 @@ from rest_framework.response import Response
"""Third party Django app"""
from templated_email import send_templated_mail
import jwt
import string
from datetime import datetime
from calendar import timegm
from uuid import uuid4
@ -179,3 +180,10 @@ def get_token(data: dict = dict):
'access': access,
'refresh': refresh
}
def generate_alphanumeric_code(length):
alphabet = string.ascii_letters + string.digits
code = ''.join(secrets.choice(alphabet) for _ in range(length))
return code