def user_logged_in(self, sender, request: AxesHttpRequest, user, **kwargs):  
<EOL>clean_expired_user_attempts(request.axes_attempt_time)<EOL>username = user.get_username()<EOL>credentials = get_credentials(username)<EOL>client_str = get_client_str(username, request.axes_ip_address, request.axes_user_agent, request.axes_path_info)<EOL>log.info('<STR_LIT>', client_str)<EOL>if not settings.AXES_DISABLE_SUCCESS_ACCESS_LOG:<EOL><INDENT>AccessLog.objects.create(<EOL>username=username,<EOL>ip_address=request.axes_ip_address,<EOL>user_agent=request.axes_user_agent,<EOL>http_accept=request.axes_http_accept,<EOL>path_info=request.axes_path_info,<EOL>attempt_time=request.axes_attempt_time,<EOL>)<EOL><DEDENT>if settings.AXES_RESET_ON_SUCCESS:<EOL><INDENT>count = reset_user_attempts(request, credentials)<EOL>log.info('<STR_LIT>', count, client_str)<EOL><DEDENT>
When user logs in, update the AccessLog related to the user.