Timeline for Copy a user from one WordPress site to another
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2017 at 15:03 | vote | accept | Nelu | ||
Sep 29, 2015 at 9:44 | history | tweeted | twitter.com/#!/StackWordPress/status/648795599282827264 | ||
Sep 29, 2015 at 9:30 | comment | added | denis.stoyanov |
If you want the same passwords, just make the users with the same account name & random password, then access the database and just copy the user_pass column. It's located in wp_users table. This way it will be the same pass. Not the best way but if there only 4 users, it's the fastest way.
|
|
Sep 29, 2015 at 8:59 | answer | added | Burgi | timeline score: 2 | |
Apr 5, 2014 at 17:24 | comment | added | Rarst | @TomJNowell changing salts invalidates cookies (requiring to login again), but it does not invalidate password hashes. | |
Apr 5, 2014 at 4:46 | comment | added | sakibmoon | I agree with @TomJNowell. The only problem will be with password. But still you should avoid such method for real user. I don't want to be added to a new site without me knowing. But if you want to do this to add your clients( I mean the owners of the website ), I don't see any problem. If the salt is different, you still have to reset password though. | |
Apr 4, 2014 at 21:46 | comment | added | Tom J Nowell♦ |
They won't be able to keep their passwords unless you have the same keys and salts in wp-config.php , changing them would invalidate all of your existing users passwords. I would strongly recommend against this for security reasons, if your client demands it then your client is being unreasonable and should be told no point blank. Tell them it is not possible
|
|
Apr 4, 2014 at 20:17 | comment | added | sakibmoon | @vancoder I don't think that's true. I don't see why won't that work. All the things related to user creation is in those two tables. I successfully copied one user this way. | |
Apr 4, 2014 at 20:12 | comment | added | Nelu | @vancoder, thanks. I guess I'll have to recreate them then and set new passwords. I am looking into implementing Active Directory, but would still like to know how to migrate a number of users, for future reference. | |
Apr 4, 2014 at 20:11 | comment | added | Nelu | Yes, @TomJNowell, I'd like to keep their passwords. | |
Apr 4, 2014 at 18:43 | comment | added | vancoder | For 4 users, you'd be better off just creating new accounts for them. There's more to migrating users than just the user records. | |
Apr 4, 2014 at 18:42 | comment | added | Tom J Nowell♦ | does this include their password? | |
Apr 4, 2014 at 18:35 | history | edited | Nelu | CC BY-SA 3.0 |
deleted 5 characters in body
|
Apr 4, 2014 at 18:30 | history | asked | Nelu | CC BY-SA 3.0 |