homebox icon indicating copy to clipboard operation
homebox copied to clipboard

Password Reset

Open Thib1404 opened this issue 1 year ago • 4 comments

What is the problem you are trying to solve with this feature?

Hello,

I might have missed it in the doc, but is there a way to reset the password for a user ? Creating a new user does not give access to the items and locations already created. Can be related to #19.

Thank you !

What is the solution you are proposing?

No response

What alternatives have you considered?

No response

Additional context

No response

Contributions

  • [X] I have searched through existing issues and feature requests to see if my idea has already been proposed.
  • [ ] If this feature is accepted, I would be willing to help implement and maintain this feature.
  • [ ] If this feature is accepted, I'm willing to sponsor the development of this feature.

Thib1404 avatar Apr 27 '23 17:04 Thib1404

Was also looking for this. Went through all the trouble to setup the SMTP settings but they don't seem to do anything since there is no forgot password button.

pogora avatar Nov 30 '23 00:11 pogora

Same here. I hadn't logged in for a while and I had my username/password stored in BitWarden so I'm pretty sure I am typing it correctly but it's not working. No way to reset password so I will lose all my data if I re-enable registration and create another user.

Edit: I stopped the HomeBox Docker Container and restarted it and I was then able to login with no issues using the BitWarden username/password. Something must have been in a weird state in HomeBox causing me to get invalid username/password errors.

GlennWo avatar Dec 28 '23 19:12 GlennWo

Same. Restarting the container solved it.

dkarter avatar Dec 30 '23 08:12 dkarter

This is EXTREMELY unsupported, but...

You can select the password hash of a working user, and replace the password field in the user table of the row containing the user in question with that password hash, then log in as them, and reset their password to whatever you want.

Make sure you have working backups before you do this.

/data $ sqlite3 homebox.db
SQLite version 3.44.2 2023-11-24 11:41:44
Enter ".help" for usage hints.
# Select from the users table to find passwords
sqlite> SELECT * FROM users;
redacted-id|2023-12-24 00:52:30.631113005 +0000 UTC m=+416.141669318|2023-12-24 00:52:30.631122795 +0000 UTC m=+416.141679108|Benjamin|[email protected]|$2THISISYOURPASSWORDHASHRIGHTHERE|0|0|owner||redacted-id
sqlite> UPDATE users
SET password = '$2THISISYOURPASSWORDHASHRIGHTHERE'
WHERE email = '[email protected]';

Make sure you have working backups.

Zorlin avatar Feb 28 '24 08:02 Zorlin