DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:auth_userdata_change

This is an old revision of the document!


AUTH_USER_CHANGE

Description:
Intercept user data modifications before they are sent to the auth backend
DefaultAction:
Call createUser, modifyUser or deleteUsers methods of an auth class.
Preventable:
yes
Added:
2008-08-17

You can use this event for logging changes to user data, to enforce password security or to prevent unsuitable user names. It is signaled from method triggerUserMod in inc/auth/basic.class.php. This method should be called when modifying user data instead of calling createUser, modifyUser or deleteUsers directly.

Passed Data

  • $data['type'] - Type of data modification (create, modify, delete)
  • $data['params'] - Parameter array for the createUser, modifyUser or deleteUsers methods of an auth class.

Example:

Array (
    [type] => create
    [params] => Array
        (
            [0] => login
            [1] => password
            [2] => real name
            [3] => mail@example.com
            [4] => Array
                (
                    [0] => user
                    [1] => groups
                )

        )
    [modification_result] => password
)

FIXME what is modification_result?

Plugins handling this event

The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.

  • FIXME

See also

devel/event/auth_userdata_change.1329223018.txt.gz · Last modified: 2012-02-14 13:36 by andi

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki