diff --git a/backend.zip b/backend.zip new file mode 100644 index 0000000..03e62e1 Binary files /dev/null and b/backend.zip differ diff --git a/backend/authentication.zip b/backend/authentication.zip new file mode 100644 index 0000000..5acff53 Binary files /dev/null and b/backend/authentication.zip differ diff --git a/backend/core.zip b/backend/core.zip new file mode 100644 index 0000000..8f98fe2 Binary files /dev/null and b/backend/core.zip differ diff --git a/backend/employee.zip b/backend/employee.zip new file mode 100644 index 0000000..50de6df Binary files /dev/null and b/backend/employee.zip differ diff --git a/backend/media.zip b/backend/media.zip new file mode 100644 index 0000000..7aa8efe Binary files /dev/null and b/backend/media.zip differ diff --git a/backend/media/student/aadhar/01296402722.pdf b/backend/media/student/aadhar/01296402722.pdf new file mode 100644 index 0000000..20d3cf7 Binary files /dev/null and b/backend/media/student/aadhar/01296402722.pdf differ diff --git a/backend/media/student/marksheet10th/01296402722.pdf b/backend/media/student/marksheet10th/01296402722.pdf new file mode 100644 index 0000000..0ba29d2 Binary files /dev/null and b/backend/media/student/marksheet10th/01296402722.pdf differ diff --git a/backend/media/student/marksheet12th/01296402722.pdf b/backend/media/student/marksheet12th/01296402722.pdf new file mode 100644 index 0000000..f437825 Binary files /dev/null and b/backend/media/student/marksheet12th/01296402722.pdf differ diff --git a/backend/media/student/pancard/01296402722.pdf b/backend/media/student/pancard/01296402722.pdf new file mode 100644 index 0000000..0225bac Binary files /dev/null and b/backend/media/student/pancard/01296402722.pdf differ diff --git a/backend/media/student/photographs/01296402722.jpeg b/backend/media/student/photographs/01296402722.jpeg new file mode 100644 index 0000000..949e742 Binary files /dev/null and b/backend/media/student/photographs/01296402722.jpeg differ diff --git a/backend/student.zip b/backend/student.zip new file mode 100644 index 0000000..4b75199 Binary files /dev/null and b/backend/student.zip differ diff --git a/backend/student/views.py b/backend/student/views.py index 6a13e23..b89c5ed 100644 --- a/backend/student/views.py +++ b/backend/student/views.py @@ -56,7 +56,12 @@ def msteams(self, request): token = request.identity_context_data._access_token decoded_token = jwt.decode(token , options={"verify_signature": False}) - full_name = f"{decoded_token['given_name']} {decoded_token['family_name']}" + + given_name = decoded_token.get('given_name') + family_name = decoded_token.get('family_name') + + full_name = f"{given_name} {family_name}" if family_name is not None else f"{given_name} " + #because everyone doesnt have a family name just like aman student_id = { "user_id": request.identity_context_data.username,