can't update user password on Mongodb 4.0.5 (Use of SCRAM-SHA-256 requires undigested passwords)
Basically, I made it with db.updateUser.

On the doc, it says the following:


passwordDigestor : string     



  Optional. Indicates whether the server or the client digests the password.
  
  Available values are:
  
  "server" (Default)
          The server receives undigested password from the client and digests the password.
  
  "client" (Not compatible with SCRAM-SHA-256)
          The client digests the password and passes the digested password to the server.
  
  Changed in version 4.0: The default value is "server". In earlier versions, the default value is "client".


It seems that, the default was "client", by unknown reasons. By the way, my Mongo Shell Client is v3.6.3.

Therefore, I just defined passwordDigestor as server, and ok. Logged out and logged in with the new password.

&gt; db.updateUser("mongo", {pwd:"mongo_n3w_p4ss", passwordDigestor:"server"});