Author Topic: Unable to log into second store with identical user settings  (Read 14085 times)

Offline Palamedes

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
    • View Profile
    • RandomStringOfWords
Unable to log into second store with identical user settings
« on: March 07, 2012, 03:13:51 PM »
Code: [Select]
mysql> select * from store.users;
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
| user_id | user_group_id | username  | password                         | firstname | lastname | email                 | status | ip             | date_added          | last_login          |
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
|       1 |             1 | palamedes | 2f28fea59aa3979397385178ea4a0051 | aaaaa     | bbbbb    | aaaaa.bbbbb@yahoo.com |      1 | 172.179.21.203 | 2012-03-06 13:22:19 | 2012-03-07 12:12:34 |
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
1 row in set (0.00 sec)

mysql> select * from secondstore.users;
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
| user_id | user_group_id | username  | password                         | firstname | lastname | email                 | status | ip             | date_added          | last_login          |
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
|       1 |             1 | palamedes | 2f28fea59aa3979397385178ea4a0051 | aaaaa     | bbbbb    | aaaaa.bbbbb@yahoo.com |      1 | 172.179.21.203 | 2012-03-06 13:22:19 | 2012-03-07 08:44:27 |
+---------+---------------+-----------+----------------------------------+-----------+----------+-----------------------+--------+----------------+---------------------+---------------------+
1 row in set (0.00 sec)


I have two installs store and secondstore.. both have identical admin accounts with the same password -- I made sure of this by updating the second stores table to be that of the first store..  Yet I can't login to the second store as it says no match for user name/password..  but it works fine on the first store.

Note; it was working fine before I did a backup of one store, and restored it to the other store to test those features.

Cache issue?
~Pal

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2063
  • Karma: +325/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
Re: Unable to log into second store with identical user settings
« Reply #1 on: March 08, 2012, 12:46:38 PM »
Hello.
You need to take value of constant UNIQUE_ID  from /system/config.php and insert into config of second instance of Abantecart.
 This value using by hash generating function and works as "salt".
it made by security reason. For example, to prevent using md5 collision.
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

Offline Palamedes

  • Newbie
  • *
  • Posts: 36
  • Karma: +5/-0
    • View Profile
    • RandomStringOfWords
Re: Unable to log into second store with identical user settings
« Reply #2 on: March 08, 2012, 05:49:20 PM »
Ah ha!  Makes perfect sense.. a salt system.. good idea..
~Pal

 

Powered by SMFPacks Social Login Mod