# Password change is required after importing bulk user on Rails

**URL:** <https://community.auth0.com/t/password-change-is-required-after-importing-bulk-user-on-rails/89914>\
**Category:** Get Help\
**Tags:** login\
**Created:** [September 2, 2022, 4:31am UTC](https://community.auth0.com/t/password-change-is-required-after-importing-bulk-user-on-rails/89914 "2022-09-02T04:31:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yk-ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yk-ms/32/33197_2.png) [@yk-ms](https://community.auth0.com/u/yk-ms)\
**Post date:** [September 2, 2022, 4:31am UTC](https://community.auth0.com/t/password-change-is-required-after-importing-bulk-user-on-rails/89914/1 "2022-09-02T04:31:07Z")

</div>

I am not able to login after importing bulk users.

I checked log message and got a message about password change is required.

this is one of user data that I imported to auth0 database.

[  
{:email=\>“test@example.com”,  
:email\_verified=\>true,  
:custom\_password\_hash=\>  
{  
:algorithm=\>“bcrypt”,  
:hash=\> {:value=\>“$2a$10$ZqTeKBHM58UOH4xTkv5gIuh/GUv8kHmOZrEYuNCYFtun7WSCUnvXW”}  
}  
}  
]

We would like to migrate our users from a ruby on rails platform using Sorcery, to auth0.

> **[GitHub - Sorcery/sorcery: Magical Authentication](https://github.com/Sorcery/sorcery)**
>
> Magical Authentication. Contribute to Sorcery/sorcery development by creating an account on GitHub.

The problem we encounter is that Sorcery is using a “salt” to the passwords each user.

I tried to find any actions in auth0 which would allow us to do this but found nothing that could help in the process before the password verification.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:20pm UTC](https://community.auth0.com/t/password-change-is-required-after-importing-bulk-user-on-rails/89914/3 "2022-09-30T23:20:46Z")

</div>

Hi @yk-ms,

Welcome to the Auth0 Community! I apologize for the delayed response.

That error suggests the hash isn’t being matched correctly.

Your hash value should include the salt. You can see an example here: [bcrypt - Wikipedia](https://en.wikipedia.org/wiki/Bcrypt#Description).

Do you have an example of how you are getting that value?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [October 27, 2022, 11:39pm UTC](https://community.auth0.com/t/password-change-is-required-after-importing-bulk-user-on-rails/89914/4 "2022-10-27T23:39:46Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
