Results 1 to 4 of 4

Thread: "pre-filled" username and password

  1. #1
    luizfat is offline Member
    Join Date
    Aug 2007
    Posts
    8

    Question "pre-filled" username and password

    Hi,

    I have my own demo version of sugarcrm ver 5,

    When users access my demo, i want to leave the username and password fields already filled with the "demo" user and its password.

    How can I do that?

    Thanks

    Fernando

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: "pre-filled" username and password

    Hi, Luizfat.

    If this system is only for demo purpose then insert this code:

    PHP Code:
    $_SESSION['login_password'] = 'admin';
    $_SESSION['login_user_name'] = 'admin'
    between
    PHP Code:
    $app->startSession(); 
    and
    PHP Code:
    $app->execute(); 
    Cheers

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    cel. 55 11 7636-5859
    e-mail: info@lampadacrm.com.br

  3. #3
    luizfat is offline Member
    Join Date
    Aug 2007
    Posts
    8

    Default Re: "pre-filled" username and password

    thank you so much!!!!!

    And thanks Lâmpada for the PT_BR language pack you guys did a great job !!!!

  4. #4
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: "pre-filled" username and password

    Hi, Luiz.

    Thank you a lot.

    It is the proposal of open source: share the code and the knowledge!

    --
    André Lopes
    Lâmpada Global Services
    Rua Bela Cintra, 299 conjunto. 51
    São Paulo, SP 01415-000
    tel1. 55 11 3237-3110
    e-mail: info@lampadaglobal.com

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. The provided database username and/or password is invalid
    By hlawnhurst1 in forum Installation and Upgrade Help
    Replies: 3
    Last Post: 2009-01-24, 04:53 PM
  2. first login: You must specify a valid username and password.
    By gosi in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-02-29, 08:31 AM
  3. Invalid Username & Password & Can't Connect To DB Please Help
    By jbridgesdesign in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2008-02-23, 10:46 PM
  4. Replies: 0
    Last Post: 2006-06-27, 09:59 PM
  5. Replies: 1
    Last Post: 2006-05-12, 08:58 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
  •