Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Jul 3, 2024
1 parent c8197f7 commit 138bb5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4357,6 +4357,8 @@ def verify_password(
)
try:
if project.check_project_password(password):
current_user = User.objects.filter(id=request.user.id)
project.annotators.add(current_user)
return Response(
{"message": "Authentication Successful"},
status=status.HTTP_200_OK,
Expand Down

0 comments on commit 138bb5b

Please sign in to comment.