Is it possible to move users along with their passwords? I can see the mapping option, but how do I output password in a template (I'm moving data between craft installations).

The below code does not work.

{% for user in craft.users().status(null).all() %}
{% endfor %}

Password hashes aren't included in the default user query for security reasons, but if you want to force them to get added, you could use:

{% for user in craft.users().status(null).addSelect(['users.password']).all() %}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.