Author Topic: Save login info on browser  (Read 3674 times)

Offline bswinnerton

  • Jr. Member
  • **
  • Posts: 49
Save login info on browser
« on: August 26, 2008, 09:59:20 PM »
Is there a way to allow users to save their username and passwords in their browsers?

Offline dj2

  • Jr. Member
  • **
  • Posts: 40
Save login info on browser
« Reply #1 on: August 26, 2008, 10:18:40 PM »
Navigate to your mail directory.  go to /skins/default/templates/login.html and search for
Code: [Select]
<roundcube:object name=&quot;loginform&quot; form=&quot;form&quot; autocomplete=&quot;off&quot; />and change "off" to "on".

Offline bswinnerton

  • Jr. Member
  • **
  • Posts: 49
Save login info on browser
« Reply #2 on: August 27, 2008, 02:49:43 PM »
I don't have that, here is my login.html:

Code: [Select]
<!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:

Code: [Select]
[/b]
But it doesn't do anything.
« Last Edit: August 27, 2008, 10:57:57 PM by bswinnerton »

Offline bswinnerton

  • Jr. Member
  • **
  • Posts: 49
Save login info on browser
« Reply #3 on: August 31, 2008, 01:29:59 PM »
Anybody have any ideas?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,856
Save login info on browser
« Reply #4 on: August 31, 2008, 03:33:08 PM »
try going to program/include/rcube_template.php and find

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

and change it to:

Code: [Select]
$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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦

Offline bswinnerton

  • Jr. Member
  • **
  • Posts: 49
Save login info on browser
« Reply #5 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

Offline dj2

  • Jr. Member
  • **
  • Posts: 40
Save login info on browser
« Reply #6 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.