support custom scripts in user self registration

This commit is contained in:
Roland Gruber 2013-08-13 18:22:03 +00:00
parent 66c83efecd
commit 191ccc97f8
3 changed files with 12 additions and 2 deletions

View File

@ -3,6 +3,7 @@ September 2013 4.3
- LAM Pro:
-> PPolicy: check password history for password reuse
-> Custom fields: read-only fields for admin interface and file upload for binary data
-> Custom scripts: support user self registration
-> Password self reset: Samba 3 sync, identification with login attribute, Samba 4 support
- fixed bugs:
-> Custom fields: auto-adding object classes via profile editor fixed

View File

@ -19,6 +19,7 @@
@ -39,6 +40,12 @@ This is a list of API changes for all LAM releases.
<br>
<h2>4.2 -&gt; 4.3</h2><span style="font-weight: bold;">Ldap::new_rand()</span> was replaced by <span style="font-weight: bold;">getRandomNumber()</span> in lib/account.inc.<br>
Module interface:<br>
<ul>
<li><span style="font-weight: bold;">preModifySelfService/postModifySelfService:</span> new parameter <span style="font-style: italic;">$newAccount</span>. The user self registration now supports preCreate/postCreate events.<br>
</li>
</ul>
<br>
<h2>4.1 -&gt; 4.2</h2>
New meta HTML classes: htmlEqualHeight, htmlAccordion<br>

View File

@ -1535,20 +1535,22 @@ abstract class baseModule {
*
* An error message should be printed if the function returns false.
*
* @param boolean $newAccount is new account or existing one
* @param array $attributes LDAP attributes of this entry
* @return boolean true, if no problems occured
*/
public function preModifySelfService($attributes) {
public function preModifySelfService($newAccount, $attributes) {
return true;
}
/**
* Allows the module to run commands after the LDAP entry is changed or created.
*
* @param boolean $newAccount is new account or existing one
* @param array $attributes LDAP attributes of this entry
* @return boolean true, if no problems occured
*/
public function postModifySelfService($attributes) {
public function postModifySelfService($newAccount, $attributes) {
return true;
}