Changeset 20282 for trunk/tools


Ignore:
Timestamp:
Jan 20, 2013, 12:50:08 PM (11 years ago)
Author:
mistic100
Message:

feature:2823 Add triggers for login system

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/triggers_list.php

    r20192 r20282  
    791791  'vars' => array('bool', null, 'string', 'methodName', 'array', 'params'),
    792792  'files' => array('include\ws_core.inc.php (PwgServer::invoke)'),
     793),
     794array(
     795  'name' => 'user_logout',
     796  'type' => 'trigger_action',
     797  'vars' => array('int', 'user_id'),
     798  'files' => array('include\functions_user.inc.php (logout_user)'),
     799),
     800array(
     801  'name' => 'user_login',
     802  'type' => 'trigger_action',
     803  'vars' => array('int', 'user_id'),
     804  'files' => array('include\functions_user.inc.php (log_user)'),
     805),
     806array(
     807  'name' => 'try_log_user',
     808  'type' => 'trigger_event',
     809  'vars' => array('boolean', 'success', 'string', 'username', 'string', 'password', 'bool', 'remember_me'),
     810  'files' => array('include\functions_user.inc.php (try_log_user)'),
     811  'infos' => 'Used by identification form to check user credentials and log user. If success is true, another login method already succeed. Return true if your method succeed.',
    793812),
    794813);
Note: See TracChangeset for help on using the changeset viewer.