docs: def post(self, request, format=None):
          """ authenticate """
          serializer = self.serializer_class(data=request.data)
  
          if serializer.is_valid():
              login(request, serializer.instance)
  
              if request.data.get('remember'):
                  # TODO: remember configurable
                  request.session.set_expiry(60 * 60 * 24 * 7 * 3)
              else:
                  request.session.set_expiry(0)
  
              return Response({
                  'detail': _(u'Logged in successfully'),
                  'user': ProfileOwnSerializer(serializer.instance,
                                               context={'request': request}).data
              })
          return Response(serializer.errors, status=400)