Fix added detection of password already encode when submitting updates

This commit is contained in:
Deon George 2009-07-05 23:40:09 +10:00
parent aa2719f8fe
commit d601121dba

View File

@ -834,6 +834,10 @@ class PageRender extends Visitor {
}
protected function getAutoPostPasswordAttribute($attribute,$i) {
# If the password is already encoded, then we'll return
if (preg_match('/^\{.+\}.+/',$attribute->getValue($i)))
return;
$attribute->setPostValue(array('function'=>'PasswordEncrypt','args'=>sprintf('%%enc%%;%%%s%%',$attribute->getName())));
$this->get('Post',$attribute,$i);
}