A
A
Alex Goncharov2020-07-03 11:30:31
MongoDB
Alex Goncharov, 2020-07-03 11:30:31

How to reset user password in mongodb database?

There is a user specified in the mongodb database - you need to recover his password, or replace it. It is the password of the application user, not the database.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
metallix, 2020-07-03
@metallix

db.changeUserPassword()
?

H
hzzzzl, 2020-07-04
@hzzzzl

that is, not a password is stored there, but a hash that you want to decrypt?
most likely nothing will work out, I suggest stupidly through the application interface to create a new user with a password we know, and copy its hash to the desired user
and then add the ability to change forgotten passwords to the application itself, something like this
sahatyalkabov.com/how-to-implement-password -reset-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question