Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

How To Migration All User From Cs Cart To Wordpress With Same Password Rate Topic   - - - - -

 
  • Enew
  • Senior Member
  • Members
  • Join Date: 22-Oct 14
  • 192 posts

Posted 30 March 2018 - 04:07 PM #1

Hello

 

Can someone tell me how to move all users from the CS-Cart to Wordpress with the same password? The important is to keep all users with the same password.

 

My website has around 17000 users.

 

My website is hosted in Godaddy with linux server.

 

If need pay, please tell me how much cost for this service and how long will be finish.

 

Thank in advance!

 

Franck



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19365 posts

Posted 02 April 2018 - 06:36 AM #2

I am afraid it is not possible since CS-Cart stores encoded with "salt" passwords


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • Enew
  • Senior Member
  • Members
  • Join Date: 22-Oct 14
  • 192 posts

Posted 02 April 2018 - 03:38 PM #3

Hi Ecomlabs

 

Thank



 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 516 posts

Posted 02 April 2018 - 04:06 PM #4

Hello,

 

You could alter the user_login function and copy the class from wordpress into there. This will allow you to keep the same password.

 

hook: 'compare_login_password_pre' and 'compare_login_password_post'

 

For more information, contact us at sales@poppedweb.com.

 

Kind regards,


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19365 posts

Posted 03 April 2018 - 05:36 AM #5

 

You could alter the user_login function and copy the class from wordpress into there. This will allow you to keep the same password.

 

 

 

How this can help? Please clarify your idea


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 516 posts

Posted 03 April 2018 - 05:37 AM #6

How this can help? Please clarify your idea

 

Well, you could copy the password check function from wordpress into that hook, effectively keeping the same hash. Therefore users would be able to keep their passwords.

 

You can get this class overhere: https://github.com/W...lass-phpass.php

 

And the function looks as follows:

function wp_check_password($password, $hash, $user_id = '') {
    global $wp_hasher;
 
    // If the hash is still md5...
    if ( strlen($hash) <= 32 ) {
        $check = hash_equals( $hash, md5( $password ) );
        if ( $check && $user_id ) {
            // Rehash using new hash.
            wp_set_password($password, $user_id);
            $hash = wp_hash_password($password);
        }
 
        /**
         * Filters whether the plaintext password matches the encrypted password.
         *
         * @since 2.5.0
         *
         * @param bool       $check    Whether the passwords match.
         * @param string     $password The plaintext password.
         * @param string     $hash     The hashed password.
         * @param string|int $user_id  User ID. Can be empty.
         */
        return apply_filters( 'check_password', $check, $password, $hash, $user_id );
    }
 
    // If the stored hash is longer than an MD5, presume the
    // new style phpass portable hash.
    if ( empty($wp_hasher) ) {
        require_once( ABSPATH . WPINC . '/class-phpass.php');
        // By default, use the portable hash from phpass
        $wp_hasher = new PasswordHash(8, true);
    }
 
    $check = $wp_hasher->CheckPassword($password, $hash);
 
    /** This filter is documented in wp-includes/pluggable.php */
    return apply_filters( 'check_password', $check, $password, $hash, $user_id );
}

PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19365 posts

Posted 03 April 2018 - 06:01 AM #7

Thank you. It is clear now


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.