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 7591eefb70
commit a0ae7bf111

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);
}