pgina/pgina — pull request #124 by Oooska (2012-04-24 18:33:35+00:00)
Title: MySQL Logger update + OriginalUsername field added to UserInformation

This is primarily in regards to issue 123, the MySQL Logger plug in was only logging the modified username, which ends up being the logged in account when using the Single User Login plugin.

To remedy this, I updated the UserInformation class to add another field titled OriginalUsername that gets set when the Username field does, but remains unmodified by any current plugins.

This could theoretically be modified by another plugin, as it's not set readonly since the UserInformation class gets instantiated prior to the username being available.

A good number of updates have been made to the MySQL Logger class as well.
It's been updated to remove the use of the SessionCache in favor of the UserInformation class.

It's been updated to read the OriginalUsername by default, but a checkbox has been added to log the modified name instead if it is preferred..

Also included is an option to log sessions in the same manner as the old 1.x plugin. This mode has been named Session (Legacy) Mode, while the original behavior as been named Event mode.

TODO: The 'Test...' button should probably be updated to verify the table has the correct fields for that mode to avoid confusion. Documentation also needs to be updated to reflect the new options.