From e43cc6890140eadda21cfd16481769abfc343b49 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 8 Jul 2013 10:12:54 -0700 Subject: [PATCH] CRM-13014 - CRM_Utils_System::userLoginFinalize - Disable due to syntax errors ---------------------------------------- * CRM-13014: CiviMobile fatal on non-d7 -Need a UF function for login authenticate http://issues.civicrm.org/jira/browse/CRM-13014 --- CRM/Utils/System/Base.php | 3 ++- CRM/Utils/System/Drupal.php | 3 ++- CRM/Utils/System/Drupal6.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index 153c7a2607..2fceed28f0 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -129,8 +129,9 @@ abstract class CRM_Utils_System_Base { * Perform an post login activities required by the UF - * e.g. for drupal: records a watchdog message about the new session, saves the login timestamp, calls hook_user op 'login' and generates a new session. * @param array $edit: The array of form values submitted by the user. - */ + * function userLoginFinalize($edit = array()){ } + */ } diff --git a/CRM/Utils/System/Drupal.php b/CRM/Utils/System/Drupal.php index 9010835232..6539a9603d 100644 --- a/CRM/Utils/System/Drupal.php +++ b/CRM/Utils/System/Drupal.php @@ -656,10 +656,11 @@ AND u.status = 1 * Perform an post login activities required by the UF - * e.g. for drupal: records a watchdog message about the new session, saves the login timestamp, calls hook_user op 'login' and generates a new session. * @param array $edit: The array of form values submitted by the user. - */ + * function userLoginFinalize($edit = array()){ user_login_finalize(&$edit); } + */ /** * Set a message in the UF to display to a user diff --git a/CRM/Utils/System/Drupal6.php b/CRM/Utils/System/Drupal6.php index 832a61b934..3ea888e48d 100644 --- a/CRM/Utils/System/Drupal6.php +++ b/CRM/Utils/System/Drupal6.php @@ -587,10 +587,11 @@ SELECT name, mail * Perform an post login activities required by the UF - * e.g. for drupal : records a watchdog message about the new session, saves the login timestamp, calls hook_user op 'login' and generates a new session. * @param array $edit: The array of form values submitted by the user. - */ + * function userLoginFinalize($edit = array()){ user_authenticate_finalize(&$edit); } + */ /** * Set a message in the UF to display to a user -- 2.25.1