Commit c6c70b62 authored by Andreas Rimolsrønning's avatar Andreas Rimolsrønning
Browse files

Merge branch 'backend/refactor/camelCase' into 'master'

Update variable name to follow naming convention

See merge request !40
parents 9aef75ce ffb065d8
Pipeline #129598 passed with stages
in 3 minutes and 50 seconds
......@@ -217,10 +217,10 @@ class RememberMe(
return Response({"remember_me": self.rememberme()})
def post(self, request):
cookieObject = namedtuple("Cookies", request.COOKIES.keys())(
cookie_object = namedtuple("Cookies", request.COOKIES.keys())(
*request.COOKIES.values()
)
user = self.get_user(cookieObject)
user = self.get_user(cookie_object)
refresh = RefreshToken.for_user(user)
return Response(
{
......@@ -229,8 +229,8 @@ class RememberMe(
}
)
def get_user(self, cookieObject):
decode = base64.b64decode(cookieObject.remember_me)
def get_user(self, cookie_object):
decode = base64.b64decode(cookie_object.remember_me)
user, sign = pickle.loads(decode)
if sign == self.sign_user(user):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment