Browse Source

set autocomplete=false to prevent browser prefilling passwd change, set return_url on all contact forms

pull/1/head
Friendika 12 years ago
parent
commit
0abaa6724d
  1. 2
      mod/contacts.php
  2. 2
      view/settings.tpl

2
mod/contacts.php

@ -90,6 +90,7 @@ function contacts_content(&$a) {
$o = '';
$o .= '<script> $(document).ready(function() { $(\'#nav-contacts-link\').addClass(\'nav-selected\'); });</script>';
$_SESSION['return_url'] = $a->get_baseurl() . '/' . $a->cmd;
if(! local_user()) {
notice( t('Permission denied.') . EOL);
@ -164,7 +165,6 @@ function contacts_content(&$a) {
return;
}
$_SESSION['return_url'] = $a->get_baseurl() . '/' . $a->cmd;
require_once('view/contact_selectors.php');

2
view/settings.tpl

@ -3,7 +3,7 @@
$nickname_block
<form action="settings" id="settings-form" method="post" >
<form action="settings" id="settings-form" method="post" autocomplete="false" >
<h3 class="settings-heading">Basic Settings</h3>

Loading…
Cancel
Save