<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>3.53 audit log and membership plugin</title>
        <link>https://interactivetools.com/forum/forum-posts.php?3_53-audit-log-and-membership-plugin-82218</link>
        <description></description>
        <pubDate>Sun, 08 Nov 2026 04:33:57 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;3_53-audit-log-and-membership-plugin-82218" rel="self" type="application/rss+xml" />

                <item>
          <title>3.53 audit log and membership plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244570#post2244570</link>
          <description><![CDATA[<p>Hi Jeff,</p>
<p>The Audit Log was generally intended to track login attempts to the CMS admin, rather than general web logins. The "user_web" field does log their details if they're already logged in as a web user, but the logging action doesn't trigger via the WebsiteMembership login code. I can see the utility of being able to enable this, though, so that may be a good feature for a future update to the plugin.</p>
<p>In the meantime, if you'd like to customize the plugin to include the logging, you can do so by adding the <strong><span>auditLog_addEntry() </span></strong><span>function call to <strong>_websiteLogin_login() </strong>in websiteMembership.php. You could add them in/after the error checking block which could look something like this:</span></p>
<pre class="language-php"><code>  // error checking
  if      (!@$_REQUEST['username']) { alert(t("Please enter a username!"). "&lt;br&gt;\n"); }
  else if (!@$_REQUEST['password']) { alert(t("Please enter a password!"). "&lt;br&gt;\n"); }
  else if (!$CURRENT_USER)          { alert(t("Invalid username or password!"). "&lt;br&gt;\n"); }
  if (function_exists('wsm_login_errorchecking')) { alert(wsm_login_errorchecking($CURRENT_USER)); }
  if (alert()) {
    auditLog_addEntry('Web Login: Failure', [ 'username' =&gt; $_REQUEST['username'] ]);
    return;
  }
  auditLog_addEntry('Web Login: Success', [ 'username' =&gt; $_REQUEST['username'] ]);</code></pre>
<p>Let me know if you have any questions!</p>
<p>Thanks,</p>]]></description>
          <pubDate>Mon, 16 Mar 2020 11:53:49 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244570#post2244570</guid>
        </item>
                <item>
          <title>3.53 audit log and membership plugin</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2244564#post2244564</link>
          <description><![CDATA[<p>I really like the new audit log. I was examining the code for adding an entry and it would seem to indicate that it logs the membership plugin by referencing the web user.</p>
<pre class="language-markup"><code>    'user_cms'         =&gt; _errorlog_getCurrentUserSummaryFor('cms'),
    'user_web'         =&gt; _errorlog_getCurrentUserSummaryFor('web'),</code></pre>
<p>However when I login using the membership generated code, there is no corresponding entry in the audit log.</p>
<p>What would  be the easiest way to add this?</p>
<p>Also what is the event source supposed to represent as it is typically blank?</p>]]></description>
          <pubDate>Sun, 15 Mar 2020 10:58:11 -0700</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2244564#post2244564</guid>
        </item>
              </channel>
    </rss>
  