Results 1 to 6 of 6
Like Tree1Likes
  • 1 Post By eggsurplus

Thread: login

  1. #1
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default login

    does any one know where is that page that redirects you to the login page if you are not login?

  2. #2
    Editha is offline Sugar Community Member
    Join Date
    Feb 2008
    Posts
    58

    Default Re: login

    it would be a very simple sytem if you could patch one file and then work in the system without login.

  3. #3
    eggsurplus's Avatar
    eggsurplus is offline Sugar Community Member
    Join Date
    Dec 2005
    Location
    Minnesota
    Posts
    2,343

    Default Re: login

    modules\Users\authentication\AuthenticationControl ler.php->sessionAuthenticate which for out of the box installs without custom authentication calls modules\Users\authentication\SugarAuthenticate\Sug arAuthenticate.php->sessionAuthenticate
    mickeycrv likes this.

  4. #4
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: login

    Quote Originally Posted by eggsurplus View Post
    modules\Users\authentication\AuthenticationControl ler.php->sessionAuthenticate which for out of the box installs without custom authentication calls modules\Users\authentication\SugarAuthenticate\Sug arAuthenticate.php->sessionAuthenticate
    Thanks but that is not it. i what i want to do is change the query string that returns when you hit the search page when you are not log in

  5. #5
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: login

    Quote Originally Posted by Editha View Post
    it would be a very simple sytem if you could patch one file and then work in the system without login.
    i know and that's not what i am trying to do at all,
    What i am trying to do is when you hit the search page i want to pass the search parameters to the login so when you do login they are already there

  6. #6
    cff_moiseszaragoza is offline Sugar Community Member
    Join Date
    Jan 2011
    Posts
    109

    Default Re: login

    My Solution

    Data in
    http://CRMSYSTEM/index.php?action=Un...ne_Phones=true


    include/MVC/SugarApplication.php line 114
    PHP Code:
        if($post_login_nav == '&login_module=Home&login_action=UnifiedSearch'){
            
    $post_login_nav .= "&search_form=" .  $_GET['search_form'];
            
    $post_login_nav .= "&advanced=" .  $_GET['advanced'];
            
    $post_login_nav .= "&query_string=" .  $_GET['query_string'];
            
    $post_login_nav .= "&search_mod_phone_Phones= $_GET['search_mod_phone_Phones'];
        } 
    modules/Users/Login.php Line 113
    PHP Code:
        if (isset($_GET['query_string']))
            
    $sugar_smarty->assign('QUERY_STRING'$_GET['query_string']);
        if (isset(
    $_GET['search_mod_phone_Phones']))
            
    $sugar_smarty->assign('SEARCH_MOD_PHONE_PHONES'$_GET['search_mod_phone_Phones']); 
    modules/Users/login.tpl Line 98
    PHP Code:
        <input type="hidden" name="query_string" value="{$QUERY_STRING}">
        <
    input type="hidden" name="search_mod_phone_Phones" value="{$SEARCH_MOD_PHONE_PHONES}"
    modules/Users/Authenticate.php line 104
    PHP Code:
    if($_POST['query_string']!=NULL){
        
    $url ="Location: index.php?action=UnifiedSearch&module=Home&search_form=false&advanced=false&query_string=".$_POST['query_string']."&search_mod_phone_Phones=".$_POST['search_mod_phone_Phones'];


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 2010-03-23, 09:02 AM
  2. Replies: 5
    Last Post: 2009-12-21, 06:35 AM
  3. Nach dem Login erscheint wieder die Login Maske
    By realnexus in forum Deutsche
    Replies: 1
    Last Post: 2009-02-19, 10:21 PM
  4. Replies: 2
    Last Post: 2008-04-21, 12:42 PM
  5. Replies: 0
    Last Post: 2005-12-09, 10:29 PM

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
  •