dsoares / roundcube-lastlogin

Roundcube plugin to save and show user login information and login history.
GNU General Public License v3.0
16 stars 12 forks source link

Moved away from using write_log hook to after_login for the DB insert… #30

Closed kawaiipantsu closed 3 years ago

kawaiipantsu commented 3 years ago

Changed using the write_log hook to use the hook after_login. As this is only something we want to happen one time when ever a user is logged in sucsessfull to then INSERT to the database table. If you use write_log then you essentially call your function every time something tries to write the log system and you have to micromanage when to actually insert into the DB table. Besides I found that the plugin did not work with Roundcube version 1.4.9 so that's why I ended up making this simple change.

dsoares commented 3 years ago

Thank you! It was really dumb using the write_log hook. As for the plugin not working with RC 1.4.9, i should update the code. I'll get to this later.