<p>I'm using Feedme to import users from one Craft site to another via an XML feed. I'd like to include users passwords too. I thought that <code>{{ user.password|hash }}</code> would do the trick but when I test this out after import using one of the imported accounts I get the "Invalid email or password" error msg. I know the account has ported across, email address 
is correct, and it's live. So must be something with the password. Can anyone help me out?</p>

CC BY-SA 4.0
2019-07-07T05:20:50.000Z
`user.password` should already be the hashed password... have you tried just that?
Brad Bell
CC BY-SA 4.0
2019-07-08T09:02:35.433Z
Hey Brad. I just sent existing users (there weren't many) a link to reset their passwords for the new system, so no dramas. I'll keep in mind for next time though.
Ian Ebden
CC BY-SA 4.0
2019-07-08T19:37:20.827Z
Fair enough... should we close this question, then?
Brad Bell
<craft3><users><plugin-feedme>
Import user passwords
# Import user passwords

(Asked by: username_0 on 2019-07-01)

I'm using Feedme to import users from one Craft site to another via an XML feed. I'd like to include users passwords too. I thought that `{{ user.password|hash }}` would do the trick but when I test this out after import using one of the imported accounts I get the "Invalid email or password" error msg. I know the account has ported across, email address
is correct, and it's live. So must be something with the password. Can anyone help me out?

**Tags:** craft3, users, plugin-feedme

> **Comments:**
> **username_1**: `user.password` should already be the hashed password... have you tried just that?  
> **username_0**: Hey Brad. I just sent existing users (there weren't many) a link to reset their passwords for the new system, so no dramas. I'll keep in mind for next time though.  
> **username_1**: Fair enough... should we close this question, then?  

---

## 0 answers

