SF Bug #3141226 - Password change/encrypted upon modification

This commit is contained in:
Deon George 2011-04-27 17:28:45 +10:00
parent 04e41f7272
commit 4cf6b17ba3
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ class PageRender extends Visitor {
$vals = $this->get('AutoPost',$attribute,$i);
}
if (! $vals)
if (! $vals || $vals == $attribute->getValues())
return;
$attribute->clearValue();

View File

@ -2082,8 +2082,8 @@ function password_types() {
debug_log('Entered (%%)',1,0,__FILE__,__LINE__,__METHOD__,$fargs);
return array(
'blowfish'=>'blowfish',
''=>'clear',
'blowfish'=>'blowfish',
'crypt'=>'crypt',
'ext_des'=>'ext_des',
'md5'=>'md5',