From 7f243fbdf55e15962e35b2e71b8d8e6e5ff045d4 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Sun, 16 May 2021 13:06:08 +0300 Subject: [PATCH] Updated Forgot Password (markdown) --- Forgot-Password.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/Forgot-Password.md b/Forgot-Password.md index 6c557e3..5ec72bd 100644 --- a/Forgot-Password.md +++ b/Forgot-Password.md @@ -1,4 +1,35 @@ -## Forgot Password +## Snap + +``` +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/snap/wekan/current/lib/x86_64-linux-gnu +export PATH="$PATH:/snap/wekan/current/bin" +mongo --port 27019 +db.users.update({username:'admin-username-here'},{$set:{isAdmin:true}}) +exit +``` +Or you could use DBGate or Nosqlbooster to edit wekan database users table to have admin true: +- https://github.com/wekan/wekan/wiki/Backup#dbgate-open-source-mongodb-gui +- https://github.com/wekan/wekan/wiki/Forgot-Password + +## Docker + +``` +docker exec -it wekan-db bash +mongo +use wekan +db.users.update({username:'admin-username-here'},{$set:{isAdmin:true}}) +exit +exit +``` +More info: +- https://github.com/wekan/wekan/wiki/Backup +- https://github.com/wekan/wekan/wiki/Docker + + +*** + + +## OLD INFO BELOW: 1) Download [Robo 3T](https://robomongo.org) on your Linux or Mac computer. Or, using ssh shell to server, [login to MongoDB database using mongo cli](https://github.com/wekan/wekan/wiki/Backup#mongodb-shell-on-wekan-snap)