Results 1 to 3 of 3

Thread: **how To Import Password For New User?

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

    Default **how To Import Password For New User?

    I know that you can import new users from a text file but there is no field to map for password...... how can this be done? or can you pass a string to create a new user? THANKS FOR YOUR HELP.

  2. #2
    sidh2111 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    29

    Default Re: **how To Import Password For New User?

    Hi tkearl

    I also want to import passwords but its not getting converted into code into db field user_hash in users table. Can you suggest some solution.

    Thanks
    Sid

  3. #3
    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: **how To Import Password For New User?

    Hi Sid

    You can create the script modules/Import/ImportUser.php. Take a look at the modules/Import/ImportAccount.php.
    If the Import module find the Import<BeanName>.php script it invoke that one to perform some specific import features.
    Inside this new class you can convert the user_hash using the built in php function MD5()

    Kind regards
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

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: 2008-03-04, 05:22 PM
  2. SugarCRM database user name and/or password is invalid
    By rkneeshaw in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-03-01, 03:43 PM
  3. Replies: 7
    Last Post: 2007-02-14, 03:48 PM
  4. Cannot Login
    By Dillon in forum Help
    Replies: 16
    Last Post: 2004-10-13, 02:52 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
  •