Skip to content

Commit

Permalink
quick fix on update password
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaloprelatto committed Jul 2, 2020
1 parent f017c4a commit 925fde6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def post(self, request, *args, **kwargs):
today = date.today()
try:
obj = token.objects.get(user = oUser.id,date = today,token = userToken)
if (obj.user.user_type.description == 'Admin' or obj.user.mail == fMail):
if (obj.user.user_type.description == 'Admin' or obj.user.mail == userMail):
if serializer.is_valid():
serializer.save()
return Response(serializer.data)
Expand Down

0 comments on commit 925fde6

Please sign in to comment.