Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Reset #436

Open
1 of 3 tasks
Thib1404 opened this issue Apr 27, 2023 · 4 comments · May be fixed by #832
Open
1 of 3 tasks

Password Reset #436

Thib1404 opened this issue Apr 27, 2023 · 4 comments · May be fixed by #832

Comments

@Thib1404
Copy link

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

  • 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.
@pogora
Copy link

pogora commented Nov 30, 2023

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.

@GlennWo
Copy link

GlennWo commented Dec 28, 2023

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.

@dkarter
Copy link

dkarter commented Dec 30, 2023

Same. Restarting the container solved it.

@hay-kot hay-kot added this to the v0.11.0 milestone Jan 4, 2024
@Zorlin
Copy link

Zorlin commented Feb 28, 2024

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|zorlin@gmail.com|$2THISISYOURPASSWORDHASHRIGHTHERE|0|0|owner||redacted-id
sqlite> UPDATE users
SET password = '$2THISISYOURPASSWORDHASHRIGHTHERE'
WHERE email = 'user.email@provider.com';

Make sure you have working backups.

@hay-kot hay-kot linked a pull request Mar 2, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants