Skip to content
Discussion options

You must be logged in to vote

Btw. I reset my credentials like this:

enter container
docker exec -ti omada-controller bash
install mongo clients
apt update && apt install -y mongodb-clients
connect to mongod
mongo --port 27217
connect to db
use omada
find the _id of my user
db.tenant.find({}, {name:1, email:1, password:1}).pretty()
the known pw hash for "password" is $shiro1$SHA-256$500000$$Z85mqKxm1Lt0NJRw9jUlw3AzDQxrMHQWebk1kNb4pSM=

update password

db.iam_user.update(
  { _id: ObjectId("<user_id_from_tenant>") },
  { $set: { password: "$shiro1$SHA-256$500000$$Z85mqKxm1Lt0NJRw9jUlw3AzDQxrMHQWebk1kNb4pSM=" } }
)

Logged in with my username and password and reset it to a safe pw.

Replies: 5 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mbentley
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mbentley
Comment options

@ovizii
Comment options

@lyledouglass
Comment options

Answer selected by ovizii
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants