Roundcube Community Forum

Release Support => Pending Issues => Topic started by: bswinnerton on August 26, 2008, 09:59:20 PM

Title: Save login info on browser
Post by: bswinnerton on August 26, 2008, 09:59:20 PM
Is there a way to allow users to save their username and passwords in their browsers?
Title: Save login info on browser
Post by: dj2 on August 26, 2008, 10:18:40 PM
Navigate to your mail directory.  go to /skins/default/templates/login.html and search for
<roundcube:object name=&quot;loginform&quot; form=&quot;form&quot; autocomplete=&quot;off&quot; />and change "off" to "on".
Title: Save login info on browser
Post by: bswinnerton on August 27, 2008, 02:49:43 PM
I don't have that, here is my login.html:

<!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;>
<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;>
<head>
<title><roundcube:object name=&quot;pagetitle&quot; /></title>
<roundcube:include file=&quot;/includes/links.html&quot; />
<style type=&quot;text/css&quot;>

#login-form {
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  width: 380px;
  border: 1px solid #999;
}

#login-form table td.title
{
  color: #666;
  text-align: right;
  padding-right: 10px;
}

.boxcontent {
  padding: 20px 20px 10px 20px;
}

</style>
</head>
<body>

<img src=&quot;/images/roundcube_logo.png&quot; border=&quot;0&quot; alt=&quot;<roundcube:object name='productname' />&quot; style=&quot;margin:2px 12px&quot; />

<roundcube:object name=&quot;message&quot; id=&quot;message&quot; />

<div id=&quot;login-form&quot;>
<div class=&quot;boxtitle&quot;><roundcube:label name=&quot;welcome&quot; /></div>
<div class=&quot;boxcontent&quot;>

<form name=&quot;form&quot; action=&quot;./&quot; method=&quot;post&quot;>
<roundcube:object name=&quot;loginform&quot; form=&quot;form&quot; />

<p style=&quot;text-align:center;&quot;><input type=&quot;submit&quot; class=&quot;button&quot; value=&quot;<roundcube:label name='login' />&quot; /></p>

</form>
</div>
</div>

</body>
</html>

I tried just adding it in to:

[/b]
But it doesn't do anything.
Title: Save login info on browser
Post by: bswinnerton on August 31, 2008, 01:29:59 PM
Anybody have any ideas?
Title: Save login info on browser
Post by: JohnDoh on August 31, 2008, 03:33:08 PM
try going to program/include/rcube_template.php and find

$input_user   = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30, 'autocomplete' => 'off'));

and change it to:

$input_user   = new html_inputfield(array('name' => '_user', 'id' => 'rcmloginuser', 'size' => 30, 'autocomplete' => 'on'));

the option to do this from the template was not in the 0.2a release but has been added since.
Title: Save login info on browser
Post by: bswinnerton on August 31, 2008, 03:43:36 PM
=/ Still nothing.  I'm running 0.2a at the moment, tried editing it and then even rebooted apache and tried it in different browsers. hmm
Title: Save login info on browser
Post by: dj2 on August 31, 2008, 09:38:34 PM
Crap.  I'm sorry, I keep forgetting that I'm running the latest SVN nightly.  I didn't think it would be that different from the current release.