Results 1 to 6 of 6

Thread: How to pass login string....

  1. #1
    tkearl is offline Member
    Join Date
    Oct 2008
    Posts
    8

    Default How to pass login string....

    I need to have my users click a button in the backoffice of another application and pass the login information, and log them directly into Sugar, without making them login again. Is this possible? And how? Thanks in advance for your help! Troy

  2. #2
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: How to pass login string....

    Link to...

    http://<yoursite>/<your crm directory>/index.php?module=Users&action=Authenticate&user_na me=<the user name>&user_password=<the password>

    The key bits are...

    module=Users
    action=Authenticate
    user_name=
    user_password=

    Of course, it does mean that anyone coming accross that link can now log in
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  3. #3
    tkearl is offline Member
    Join Date
    Oct 2008
    Posts
    8

    Question Re: How to pass login string....

    Can you do the same thing to create a USER , in Sugar, from another appllication? THANKS

  4. #4
    eNick is offline Sugar Community Member
    Join Date
    Apr 2008
    Location
    UK
    Posts
    282

    Default Re: How to pass login string....

    Yes. It's just data being fired at the server.

    But you'd have to already be logged in.

    Do a view source on the create user page, look at the names of all the entry fields, and look at the action that's sent on the form submit.

    Question is, why would you?

    It would be far easier to pass the additional parameters on the automatic login to redirect to the create user page after the login....

    return_module=Users
    return_action=EditView

    Of course, the user logged in would have to be an admin

    And on the Pro edition you may quickly run out of licences!

    Finally, bear in mind you can't delete users through the interface
    T H E S U G A R R E F I N E R Y
    : : : SugarCrm Customisation and Integration Services : : :

    SugarCRM Systems Integration Partner
    Trusted with SugarCRM
    http://www.theSugarRefinery.com ::: sales@{removethis}theSugarRefinery.com

  5. #5
    tkearl is offline Member
    Join Date
    Oct 2008
    Posts
    8

    Default Re: How to pass login string....

    I am getting the following error when passing the login string on my server:

    Service Temporarily Unavailable
    The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.

    But.... I can use the regular login process no problem. Any ideas??

  6. #6
    waqarsheikh is offline Member
    Join Date
    Sep 2009
    Posts
    5

    Default Re: How to pass login string....

    Hi,

    I am trying to login and send a search string at a same time. I am able to login and serach page comes up but it is not passing the search string for some reason.

    This is how I have done it please let me know what am I missing in this line to pass the query string properly so it will serach properly.

    http://localhost/index.php?module=Us...ring=123456789

    Thanks

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Bypassing login?
    By jasonsot in forum Help
    Replies: 4
    Last Post: 2008-06-04, 09:40 PM
  2. Replies: 5
    Last Post: 2007-11-13, 02:51 PM
  3. help with java client 4 WS
    By asdasd123123 in forum Developer Help
    Replies: 1
    Last Post: 2007-07-11, 10:53 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
  •