.

ConfigUsermanagement Class Reference
[Usermanagement]

Usermanagement config options. More...

List of all members.

Public Attributes

const  BEHAVIOUR_403 = 'USER_403_BEHAVIOUR'
  Defines how routing should act if an anonymous user hits a page that requires login.
const  CACHEHEADER_CLASS_LOGGEDIN = 'USER_CACHEHEADER_CLASS_LOGGEDIN'
  CacheHeaderManager policy for logged in users.
const  DEFAULT_PAGE = 'USER_DEFAULT_PAGE'
  The default URL for users logged in.
const  DEFAULT_ROLE = 'USER_DEFAULT_ROLE'
  Default role of newly registerd user.
const  ENABLE_PWD_ON_EMAILCHANGE = 'USER_ENABLE_PWD_ON_EMAILCHANGE'
  Enable Passwordcheck when changing e-mail.
const  HASH_TYPE = 'USER_HASH_TYPE'
  Defines the hash algorithm to encyrpt the user's password.
const  MAIL_STATUSCHANGE = 'USER_MAIL_STATUSCHANGE'
  User receives Mail when user status changes Standard is true.
const  PERMANENT_LOGIN_DURATION = 'USER_PERMANENT_LOGIN_DURATION'
  Time in days a permantent login is valid.
const  TOS_VERSION = 'USER_TOS_VERSION'
  Current version of TOS.
const  USER_403_BEHAVIOUR = 'USER_403_BEHAVIOUR'
const  USER_DEFAULT_PAGE = 'USER_DEFAULT_PAGE'
const  USER_DEFAULT_ROLE = 'USER_DEFAULT_ROLE'
const  USER_HASH_TYPE = 'USER_HASH_TYPE'

Detailed Description

Usermanagement config options.

Since:
0.5.1

Every option can be set through the according APP_ constant, e.g. to define default role, use constant APP_USER_DEFAULT_ROLE.

Author:
Gerd Riesselmann

Definition at line 95 of file start.inc.php.


Member Data Documentation

Defines how routing should act if an anonymous user hits a page that requires login.

Allowed are:

  • DENY: (default) Just show a 403 page and message
  • REDIRECT_LOGIN: Redirect to login page
Deprecated:
Use AccessDeniedRedirectRenderDecorator instead

Definition at line 118 of file start.inc.php.

const ConfigUsermanagement::CACHEHEADER_CLASS_LOGGEDIN = 'USER_CACHEHEADER_CLASS_LOGGEDIN'

CacheHeaderManager policy for logged in users.

Class name without CacheHeaderManager, e.g. NoCache for NoCacheCacheHeaderManager

Definition at line 161 of file start.inc.php.

The default URL for users logged in.

Definition at line 105 of file start.inc.php.

Default role of newly registerd user.

Default is "user"

Definition at line 99 of file start.inc.php.

const ConfigUsermanagement::ENABLE_PWD_ON_EMAILCHANGE = 'USER_ENABLE_PWD_ON_EMAILCHANGE'

Enable Passwordcheck when changing e-mail.

Defaults to true

Definition at line 180 of file start.inc.php.

Defines the hash algorithm to encyrpt the user's password.

Since:
0.5.1

Possible values are:

  • md5: The MD5 hash
  • sha1: The SHA1 hash
  • pas2f: phpass 0.2 in full mode
  • pas2p: phpass 0.2 in portable mode. This is a kind of salted md5.
  • pas3f: phpass 0.3 in full mode
  • pas3p: phpass 0.3 in portable mode. This is a kind of salted md5. (Default)
See also:
http://www.openwall.com/phpass/

Modules or applications may add more algorithms

Regarding the two phppass modes, the full mode may lead to different results based on your system's configuration. It should only be used if either PHP 5.3 or the Suhosin Patch is installed. Moving from a PHP 5.2/Non Suhosin to a PHP 5.3 or PHP 5.2/Suhosin system (or vice versa) may turn your user's passwords unverifyable.

Full mode is generally safer, though.

Definition at line 146 of file start.inc.php.

const ConfigUsermanagement::MAIL_STATUSCHANGE = 'USER_MAIL_STATUSCHANGE'

User receives Mail when user status changes Standard is true.

Definition at line 175 of file start.inc.php.

const ConfigUsermanagement::PERMANENT_LOGIN_DURATION = 'USER_PERMANENT_LOGIN_DURATION'

Time in days a permantent login is valid.

Default is 14.

Since:
0.5.1

Definition at line 154 of file start.inc.php.

const ConfigUsermanagement::TOS_VERSION = 'USER_TOS_VERSION'

Current version of TOS.

Only integer values allowed.

0 means there are no TOS, and this is the default

Definition at line 169 of file start.inc.php.


The documentation for this class was generated from the following file: