Project

General

Profile

Actions

Feature proposal #6458

closed

Improve login trigger variables

Added by krileon almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
23 January 2017
Due date:
% Done:

100%

Estimated time:

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.

https://www.joomlapolis.com/forum/153-professional-member-support/235840-auto-action-condition-first-login#290509

Actions #1

Updated by krileon almost 8 years ago

  • Tracker changed from Bug to Feature proposal
Actions #2

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 ) );

Actions #3

Updated by krileon over 7 years ago

  • Target version changed from CB 2.2 to CB 2.1.3
Actions #4

Updated by krileon over 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF