You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's also no way for a user to recover their own password
There is actually, by changing the Postgres row directly. It's just a regular password hash (I forgot whether it's bcrypt or argon2).
I might implement a "change password" API endpoint later.
I'm sorry, but that does not answer my comment. A user themselves cannot access the Postgres DB to recover their password.
Does this mean that right now the only way would be for the admin to change the Postgres row to a new hashed password, tell that password to the user, and have them change after?
There's also no way for a user to recover their own password
There is actually, by changing the Postgres row directly. It's just a regular password hash (I forgot whether it's bcrypt or argon2).
I might implement a "change password" API endpoint later.
I'm sorry, but that does not answer my comment. A user themselves cannot access the Postgres DB to recover their password.
Does this mean that right now the only way would be for the admin to change the Postgres row to a new hashed password, tell that password to the user, and have them change after?
There's also no way for a user to recover their own password
There is actually, by changing the Postgres row directly. It's just a regular password hash (I forgot whether it's bcrypt or argon2).
I might implement a "change password" API endpoint later.
I'm sorry, but that does not answer my comment. A user themselves cannot access the Postgres DB to recover their password.
Does this mean that right now the only way would be for the admin to change the Postgres row to a new hashed password, tell that password to the user, and have them change after?
Sadly yes.
That does leave me very sad. I was about to expand the usage of DocMost from a small group to a few dozen users, but I can't be available to go into the docker instance running docmost, into postgres, to make this change every time someone forgets their password.
I really enjoy the simplicity of DocMost, it's a tool with great potencial, but without the basic authentication functionality and user management, it becomes unusable for most use cases.
There's also no way for a user to recover their own password
There is actually, by changing the Postgres row directly. It's just a regular password hash (I forgot whether it's bcrypt or argon2).
I might implement a "change password" API endpoint later.
I'm sorry, but that does not answer my comment. A user themselves cannot access the Postgres DB to recover their password.
Does this mean that right now the only way would be for the admin to change the Postgres row to a new hashed password, tell that password to the user, and have them change after?
Sadly yes.
That does leave me very sad. I was about to expand the usage of DocMost from a small group to a few dozen users, but I can't be available to go into the docker instance running docmost, into postgres, to make this change every time someone forgets their password.
I really enjoy the simplicity of DocMost, it's a tool with great potencial, but without the basic authentication functionality and user management, it becomes unusable for most use cases.
It's a bummer for me, too. Our story seems similar 😆. But hey, it's still early, there are lots of room for improvement.
When updating password hashes in PostgreSQL through a container's console in Portainer, you need to handle dollar signs ($) carefully as psql may interpret them as variable substitution markers.
psql -U docmost -d docmost -c "UPDATE users SET password = $pass$$2a$12$ZTMgX4lFWSSqKDeij4Q/W.Qb/fmzD3fAophfD8jpeWIqKlLhan02$pass$ WHERE email = '[email protected]';"
@Philipinhodocker exec DB_CONTAINER_ID psql -U docmost -d docmost -c "UPDATE users SET password = 'PASSWORD_HASH' WHERE email = 'YOUR-EMAIL';"
it doesn‘t work now,maybe the website hash is not right?
@Philipinhodocker exec DB_CONTAINER_ID psql -U docmost -d docmost -c "UPDATE users SET password = 'PASSWORD_HASH' WHERE email = 'YOUR-EMAIL';" it doesn‘t work now,maybe the website hash is not right?
I might be a few months late, but I had a similar issue, let me give you an example:
Activity
Morthor commentedon Sep 3, 2024
There's also no way for a user to recover their own password
aldy505 commentedon Sep 3, 2024
There is actually, by changing the Postgres row directly. It's just a regular password hash (I forgot whether it's bcrypt or argon2).
I might implement a "change password" API endpoint later.
Morthor commentedon Sep 3, 2024
I'm sorry, but that does not answer my comment. A user themselves cannot access the Postgres DB to recover their password.
Does this mean that right now the only way would be for the admin to change the Postgres row to a new hashed password, tell that password to the user, and have them change after?
aldy505 commentedon Sep 3, 2024
Sadly yes.
Morthor commentedon Sep 3, 2024
That does leave me very sad. I was about to expand the usage of DocMost from a small group to a few dozen users, but I can't be available to go into the docker instance running docmost, into postgres, to make this change every time someone forgets their password.
I really enjoy the simplicity of DocMost, it's a tool with great potencial, but without the basic authentication functionality and user management, it becomes unusable for most use cases.
aldy505 commentedon Sep 3, 2024
It's a bummer for me, too. Our story seems similar 😆. But hey, it's still early, there are lots of room for improvement.
Philipinho commentedon Sep 3, 2024
Password reset will be available in the next release.
sibelius commentedon Sep 3, 2024
aldy505 commentedon Sep 3, 2024
@Philipinho are you working on it yet? If you're not. I can implement that.
Basically the flow is:
emailof the user2 new API endpoints
aldy505 commentedon Sep 3, 2024
There you go: #250
Does anyone want to implement the frontend side? I'm not really good with React, so.. yeah. I probably can't do that.
sahariardev commentedon Sep 6, 2024
@Philipinho and @aldy505 I want to develop the frontend
sahariardev commentedon Sep 7, 2024
Here is the frontend side #273
ddkooker2 commentedon Sep 9, 2024
In the mean time, does anyone have the commands/procedure to manually reset the password?
aldy505 commentedon Sep 9, 2024
@ddkooker2 this one #182 (comment)
quaintdev commentedon Sep 10, 2024
I am locked out of my account! Any other way we can reset the password?
Philipinho commentedon Sep 10, 2024
@quaintdev If you can run a small node script, see #182 (comment).
Otherwise, you could generate a 12-round password hash of your desired password from https://bcrypt-generator.com/. Then update the password manually in the Postgres db.
quaintdev commentedon Sep 10, 2024
This worked. Thanks!
Philipinho commentedon Sep 19, 2024
Password reset UI.
Thanks to contributions from @aldy505 and @sahariardev.
Ps: It will be available in the next release.
heinrihs-s commentedon Mar 14, 2025
When updating password hashes in PostgreSQL through a container's console in Portainer, you need to handle dollar signs (
$) carefully as psql may interpret them as variable substitution markers.pomfei commentedon Oct 22, 2025
@Philipinho
docker exec DB_CONTAINER_ID psql -U docmost -d docmost -c "UPDATE users SET password = 'PASSWORD_HASH' WHERE email = 'YOUR-EMAIL';"it doesn‘t work now,maybe the website hash is not right?
southalan commentedon Dec 31, 2025
@pomfei
I might be a few months late, but I had a similar issue, let me give you an example:
As heinrihs-s previously mentioned, you should escape the "$" dollar sign to avoid issues.
If done correctly, you will get a "UPDATE 1" as a result, and the "$" will not be cut/replaced within the hashed password string.
Cheers!
test(review): address PR docmost#182 review — tests + extract message…
docs(ai-chat): document load-bearing invariant of messageSignature memo
merge: fold docmost#182 (AI-chat stream throttle + render memoization…
fix(ai-chat): assistant turn renders empty — memo froze on in-place p…
Merge pull request 'fix(ai-chat): assistant turn renders nothing — me…