Fix added detection of password already encode when submitting updates
This commit is contained in:
parent
aa2719f8fe
commit
d601121dba
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user