From 925fde62146b9c0a168bd3639d32085e7e6eaa0a Mon Sep 17 00:00:00 2001 From: gonzalo Date: Thu, 2 Jul 2020 12:24:57 -0300 Subject: [PATCH] quick fix on update password --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 472cf55..7668fcf 100644 --- a/api/views.py +++ b/api/views.py @@ -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)