code: def user_logged_in(self, sender, request: AxesHttpRequest, user, **kwargs):  # pylint: disable=unused-argument
          
  
          # 1. database query: Clean up expired user attempts from the database
          clean_expired_user_attempts(request.axes_attempt_time)
  
          username = user.get_username()
          credentials = get_credentials(username)
          client_str = get_client_str(username, request.axes_ip_address, request.axes_user_agent, request.axes_path_info)
  
          log.info('AXES: Successful login by %s.', client_str)
  
          if not settings.AXES_DISABLE_SUCCESS_ACCESS_LOG:
              # 2. database query: Insert new access logs with login time
              AccessLog.objects.create(
                  username=username,
                  ip_address=request.axes_ip_address,
                  user_agent=request.axes_user_agent,
                  http_accept=request.axes_http_accept,
                  path_info=request.axes_path_info,
                  attempt_time=request.axes_attempt_time,
              )
  
          if settings.AXES_RESET_ON_SUCCESS:
              # 3. database query: Reset failed attempts for the logging in user
              count = reset_user_attempts(request, credentials)
              log.info('AXES: Deleted %d failed login attempts by %s from database.', count, client_str)
docs: When user logs in, update the AccessLog related to the user.