# Comment réinitialiser le mot de passe des utilisateurs dans la base de données PostgreSQL

**URL:** <https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690>\
**Category:** Self-hosting\
**Created:** [Novembre 25, 2022, 2:04 UTC](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690 "2022-11-25T02:04:11Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [Novembre 25, 2022, 7:26 UTC](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690/3 "2022-11-25T19:26:01Z")

</div>

Depuis la console Rails :

```plaintext
User.find_by(username: 'gollum').update!(password: 'shiiiire!-BAGGINS!')

```

---

_[View the full topic](https://meta.discourse.org/t/how-to-reset-password-for-users-in-postgresql-database/246690)._
