mantisbt:issue:3444
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mantisbt:issue:3444 [2010/01/12 06:03] – sveyret | mantisbt:issue:3444 [2010/03/05 05:05] (current) – sveyret | ||
|---|---|---|---|
| Line 127: | Line 127: | ||
| The access API is modified to manage the new access system. Instead of quering for levels, one should only test if the access (using the representation string) is allowed to a given user. | The access API is modified to manage the new access system. Instead of quering for levels, one should only test if the access (using the representation string) is allowed to a given user. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| Line 135: | Line 141: | ||
| A new class is created for the login plugins. Login plugins should simply extend the MantisLogin.class.php which itself extends the MantisPlugin.class.php. This class handles the newly created events: | A new class is created for the login plugins. Login plugins should simply extend the MantisLogin.class.php which itself extends the MantisPlugin.class.php. This class handles the newly created events: | ||
| * EVENT_LOGIN_AUTHENTICATE (EVENT_TYPE_FIRST): | * EVENT_LOGIN_AUTHENTICATE (EVENT_TYPE_FIRST): | ||
| - | * EVENT_LOGIN_NEED_INFO | + | * EVENT_LOGIN_AUTHENTICATE_BY_NAME (EVENT_TYPE_FIRST): |
| - | * EVENT_LOGIN_INFO | + | * EVENT_LOGIN_NEED_FORM |
| + | * EVENT_LOGIN_FIELDS (EVENT_TYPE_OUTPUT): | ||
| + | * EVENT_LOGIN_EXTRA | ||
| * EVENT_LOGIN_GET_USER (EVENT_TYPE_FIRST): | * EVENT_LOGIN_GET_USER (EVENT_TYPE_FIRST): | ||
| * EVENT_LOGIN_GET_GROUP (EVENT_TYPE_FIRST): | * EVENT_LOGIN_GET_GROUP (EVENT_TYPE_FIRST): | ||
| - | * EVENT_LOGIN_SEARCH_USERS (EVENT_TYPE_CHAIN): Search for users having either username, real name, name or first name (depending on the data provided by the plugin) matching the input. If the input string is smaller than a given number of character, searches for exact match. Otherwise, search for users containing the given string. Each plugin returns an array of User.class, merged with input value. | + | * EVENT_LOGIN_SEARCH_USERS (EVENT_TYPE_DEFAULT): Search for users having either username, real name, name or first name (depending on the data provided by the plugin) matching the input. If the input string is smaller than a given number of character, searches for exact match. Otherwise, search for users containing the given string. Each plugin returns an array of User.class. |
| - | * EVENT_LOGIN_SEARCH_GROUPS (EVENT_TYPE_CHAIN): Same than EVENT_LOGIN_SEARCH_USERS, | + | * EVENT_LOGIN_SEARCH_GROUPS (EVENT_TYPE_DEFAULT): Same than EVENT_LOGIN_SEARCH_USERS, |
| * EVENT_LOGIN_LOGOUT (EVENT_TYPE_EXECUTE): | * EVENT_LOGIN_LOGOUT (EVENT_TYPE_EXECUTE): | ||
| + | * EVENT_LOGIN_LOST_PWD (EVENT_TYPE_FIRST): | ||
| The login procedure is the following: | The login procedure is the following: | ||
| Line 152: | Line 161: | ||
| The User.class contains methods to get information about a user: | The User.class contains methods to get information about a user: | ||
| - | * getUserName() -> returns the username (internally used name) of the user. | + | * getName() -> returns the real name of the user. |
| - | * getRealName() -> returns the real name of the user. | + | |
| * getEMail() -> returns the e-mail addresse of the user. | * getEMail() -> returns the e-mail addresse of the user. | ||
| + | * getAvatar() -> returns the avatar for the user. | ||
| * isEnabled() -> indicates if the user is enabled. | * isEnabled() -> indicates if the user is enabled. | ||
| * update() -> returns an URL to use to update the user data or null if not modifiable. | * update() -> returns an URL to use to update the user data or null if not modifiable. | ||
mantisbt/issue/3444.1263294202.txt.gz · Last modified: (external edit)
