I have successfully configured a user "bob" to use the password "secret" in rethinkdb:
r.db('rethinkdb').table('users').insert({id: 'bob', password: 'secret'})
From Node.js, I'm trying to connect to it using npm's rethinkdb module.
r.connect({ host: 'backend', port: 28015, db: 'db', user: 'bob', password: 'secret' });
I get the following error regarding the password:
Unhandled rejection ReqlAuthError: Wrong password
Without a password on rethinkdb, the connection succeeds, so there is no connectivity issue. With a different username, I get the expected "unknown user" error... do I get a hash for the password when I create it on rethinkdb? Any idea?
From the rethinkDB docs.
You can remove a password with the line of code, by using
update
methoed and setting the password tofalse
value.You can change a password of a user by using
insert
method. Here is an example.