diff --git a/src/includes/class/class.LSformElement_password.php b/src/includes/class/class.LSformElement_password.php index b8f9f518..5fba5b6f 100644 --- a/src/includes/class/class.LSformElement_password.php +++ b/src/includes/class/class.LSformElement_password.php @@ -152,7 +152,10 @@ class LSformElement_password extends LSformElement { 'mail' => $mail, 'pwd' => $return[$this -> name][0] ); - $this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send'); + if ($this -> form -> idForm == 'create') + $this -> attr_html -> attribute -> addObjectEvent('after_create', $this, 'send'); + else + $this -> attr_html -> attribute -> addObjectEvent('after_modify', $this, 'send'); } } return $retval;