Roundcube is very well made webmail client written in PHP and all the aspects of the program experiences are taken very seriously, like the security as an example.
If installed by default Roundcube does not allow the browser to remember your username details. If you are like me a bit unhappy to type it every time – this is the article for you. Of course when I first decided to change this behaviour I went to see if there is anything in the official documentation, but I could not find the answer there nor I managed to find a decent answer to that online. So I had to take the hard way and do it myself digging the content of the program’s files… 🙂
My Roundcube installation is on a Debian system, but in general the steps should be the same for any Linux installation.
First of all find your installation folder, on a Debian system it should be /usr/share/roundcube.
Navigate to include folder:
cd /usr/share/roundcube/program/include/
Open the file rcmail_output_html.php with your favourite text editor.
nano rcmail_output_html.php
In this file find the lines with this content /line 1792 in my case/:
// set atocomplete attribute
$user_attrib = $autocomplete > 0 ? array() : array(‘autocomplete’ => ‘off’);
Now at the end of the line change ‘off’ to ‘on’ so it looks like this:
// set atocomplete attribute
$user_attrib = $autocomplete > 0 ? array() : array(‘autocomplete’ => ‘on’);
And that’s all, just reload Roundcube’s login page so your change takes effect. Keep in mind after update you may /most likely will/ need to change this again.