# Reset password with custom ruby file

**URL:** https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184
**Category:** Development
**Created:** [September 26, 2023, 3:16pm UTC](https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184 "2023-09-26T15:16:32Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [September 26, 2023, 3:51pm UTC](https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184/4 "2023-09-26T15:51:30Z")

</div>

Have you had a look at this? It might help:

> [@Migrated password hashes support](https://meta.discourse.org/t/migrated-password-hashes-support/19512):
>
> Here is the password migration support plugin: [https://github.com/communiteq/discourse-migratepassword/](https://github.com/communiteq/discourse-migratepassword/)The original thread follows. We do regular forum conversions (yes, we’ll open source the converter once it’s stable enough) and one of the big quirks when migrating to Discourse is the fact that all users have to set a new password, because the password in the original forum is encrypted. So we thought of the following mechanism. when creating users in the conversion step, we store the …

It supports Drupal 7 passwords:

> <https://github.com/communiteq/discourse-migratepassword/blob/master/plugin.rb#L20>

---

_[View the full topic](https://meta.discourse.org/t/reset-password-with-custom-ruby-file/280184)._
