I would like to change the password of a Rocketchat user from the mongo command prompt. I followed to the letter the documentation provided by Rocketchat at this address:https://rocket.chat/docs/administrator-guides/restoring-an-admin/ but when I run the following command:
db.getCollection('users').update({username: "gotexx"}, { $set: {"services" : { "password" : {"bcrypt" : "$2a$10$n9CM8OgInDlwpvvjLKLPML.eizXIzLlRtgCh3GRLafOdR9ldAUh/KG" } } } } }
I get 3 small points and nothing else...
rs0:PRIMARY> db.getCollection('users').update({username:"hugo"}, { $set: {"services" : { "password" : {"bcrypt" : "$2a$10$n9CM8OgInDlwpvjLKLPML.eizXIzLlRtgCh3GRLafOdR9ldAUh/KG" } } } }
...
Is there another way to change the value of the user's password? The use of the "Forgotten Password" feature does not work.
Thank you. Thank you.
...indicates themongoshell is still expecting more input, so you have an incomplete statement or a syntax error. In this case yourupdate()example is missing a closing). – Stennie Oct 13 '19 at 18:56