Feature proposal #6458
closedImprove login trigger variables
Description
Currently the onAfterLogin trigger is not sent $firstLogin. So if you need to alter login behavior only on non-first logins you can't.
Updated by krileon almost 8 years ago
- Tracker changed from Bug to Feature proposal
Updated by krileon almost 8 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implemented in MR !1244
FROM:$_PLUGINS->trigger( 'onDoLoginNow', array( $username, $password, $rememberMe, &$row, &$loggedIn, &$resultError, &$messagesToUser, &$alertMessages, &$return, $secretKey ) );
TO:$_PLUGINS->trigger( 'onDoLoginNow', array( $username, $password, $rememberMe, &$row, &$loggedIn, &$resultError, &$messagesToUser, &$alertMessages, &$return, $secretKey, $firstLogin ) );
FROM:$_PLUGINS->trigger( 'onAfterFirstLogin', array( &$row, $loggedIn ) );
TO:$_PLUGINS->trigger( 'onAfterFirstLogin', array( &$row, $loggedIn, true, &$messagesToUser, &$alertMessages, &$return ) );
FROM:$_PLUGINS->trigger( 'onAfterLogin', array( &$row, $loggedIn ) );
TO:$_PLUGINS->trigger( 'onAfterLogin', array( &$row, $loggedIn, $firstLogin, &$messagesToUser, &$alertMessages, &$return ) );
Updated by krileon over 7 years ago
- Target version changed from CB 2.2 to CB 2.1.3