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.
Changed using the
write_log hook
to use the hookafter_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 withRoundcube version 1.4.9
so that's why I ended up making this simple change.