Results 1 to 2 of 2

Thread: How to track user login

  1. #1
    piccirm is offline Sugar Community Member
    Join Date
    Apr 2008
    Posts
    83

    Default How to track user login

    Hi

    in the table tracker where action=login the user_id field is always blank
    How can I extract data on users login (successful or unsuccesful attempt)?
    I'd not have only to log file but a table

    tks

  2. #2
    daniel.passarini's Avatar
    daniel.passarini is offline Sugar Community Member
    Join Date
    Apr 2006
    Location
    São Paulo - SP / Brasil
    Posts
    80

    Default Re: How to track user login

    You can set an 'after_login' logic hook and manually program a fuction to track your logins. You can even use the track modules.
    the file would be custom/modules/logic_hooks.php and its content would be something like that:
    PHP Code:
    if (!defined('sugarEntry'))define('sugarEntry'true);

    $hook_array['after_login'][] = array (0// logic hook id
    "track_login"// logic hook name
    "custom/include/LoginLogicHooks.php"// file where you code should be stored
    "LoginLogicHooks"// class written in the file above
    "track_login" // class method called. this method should be the code the code to track the logins
    ); 
    For more information about logic hooks:
    http://developers.sugarcrm.com/docs/...2.html#9001780
    Daniel de Carvalho Passarini

    "Fascinating" - Dr. Spock

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. I am not able to login as a user?
    By ramji123 in forum General Discussion
    Replies: 4
    Last Post: 2008-10-14, 09:03 PM
  2. User Login problem
    By GGrobbins in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-08-15, 03:18 PM
  3. Track User Logins
    By meeder in forum Help
    Replies: 2
    Last Post: 2006-04-13, 08:55 PM
  4. Replies: 0
    Last Post: 2005-12-09, 10:29 PM
  5. New User Login???
    By hemps in forum Help
    Replies: 1
    Last Post: 2004-07-29, 05:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •