# Setting a random password on importing users

**URL:** <https://meta.discourse.org/t/setting-a-random-password-on-importing-users/120857>\
**Category:** Development\
**Created:** [20.Июнь.2019 00:54:35 UTC](https://meta.discourse.org/t/setting-a-random-password-on-importing-users/120857 "2019-06-20T00:54:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![csmu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/csmu/32/124581_2.png) [@csmu](https://meta.discourse.org/u/csmu)\
**Post date:** [20.Июнь.2019 00:54:35 UTC](https://meta.discourse.org/t/setting-a-random-password-on-importing-users/120857/1 "2019-06-20T00:54:35Z")

</div>

We’re importing a club membership list.

We’ve created random passwords for each member which will be SMS’d to them with the expectation they will change their password.

Say I have a password `mozrT9M8Gp` for a user we’re importing … how do I set the password\_hash and salt such that if they decide to login without asking for a password reset it will work?

---

_[View the full topic](https://meta.discourse.org/t/setting-a-random-password-on-importing-users/120857)._
