mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-25 17:25:57 +03:00
[GH-ISSUE #85] Password hints not available #43
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @opcod3 on GitHub (Jul 15, 2018).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/85
The api endpoint for getting password hints appears to be unimplemented. When either through a client or through the webapp, a user requests a password hint an
Errors have occurredmessage pops up.The server log reports:
@mprasil commented on GitHub (Jul 15, 2018):
We do save the hint on account creation and we also have
find_by_mailimplemented forUser, so this one should be fairly easy to implement.@dani-garcia commented on GitHub (Jul 15, 2018):
The problem is I think that endpoint just sends an email to the user and doesn't return anything, so I'm not sure we can implement it in any way without SMTP support first.
@mprasil commented on GitHub (Jul 15, 2018):
Oh, that makes things a bit more complicated. Maybe we could return an error with the hint as error message then?
@dani-garcia commented on GitHub (Jul 15, 2018):
That could be possible, it depends on if the web-vault actually shows the error message sent, because in some cases it just shows a generic error message.
@stammw commented on GitHub (Aug 8, 2018):
Hello,
I'd like to try to solve this one, I'm really excited to try contributing to a rocket-rs based project!
Should I implement it returning the hint into the error response, or could I try to implement a minimal SMTP support ? Following these implementation and configuration ?
@mprasil commented on GitHub (Aug 8, 2018):
Hey, why not both? 😄
Returning the hint in error message is unverified concept. We're not sure the client will display it, but if it's same as the other endpoints, it should. It should be fairly easy to test and implement though, so I'd advise to start with this.
The smtp implementation is going to be quite a lot of code. For example we need to add email verification first otherwise the api could be abused for spam. Also we need to make sure all of this will stay optional.
@opcod3 commented on GitHub (Aug 8, 2018):
If it is possible to have the client display a custom error message, how about having the server optionally display the hint there? I know it's quite insecure but it could still be useful for small/single user installations where you are mindful of the hint being public, so it's something that meaningful only to you. This would allow forgetful people, like me, to still get hints without the trouble of setting up SMTP.
@mprasil commented on GitHub (Aug 8, 2018):
Yeah, that's the idea behind the first approach. Server can return error json data with the message as one of the fields. Normally the handler on the client side shows the message as an error notification.
@stammw commented on GitHub (Aug 9, 2018):
In what form should the option be handled? There can be a boolean option like "show password hint", or the controller could return the hint only in the case of absence of a valid SMTP configuration?
@mprasil commented on GitHub (Aug 9, 2018):
I think separate option (can default to true) would be better. Some people might still want to use this hint hack even with smtp available.
@stammw commented on GitHub (Aug 10, 2018):
As mprasil pointed out, the web-vault 2.x doesn't show the error message. This hack will then be useless.
Should I try to implement SMTP then ?
@mprasil commented on GitHub (Aug 12, 2018):
There's a lot of functionality that would benefit from SMTP, but it's probably a bit more involved implementation to do that. If you feel like working on this @stammw and as long as it's optional, I'm sure the PR would be appreciated.
@stammw commented on GitHub (Aug 13, 2018):
Great,
I was planning to dive into a SMTP integration with letter and handlebars.
I'll be on working on that this week!
@mprasil commented on GitHub (Sep 3, 2018):
Note that we've fixed an issue some time ago to show password hints via error message even in Vault 2.0, so I'm removing the "requires SMTP" tag as the feature currently works. The PR #137 is for extending the functionality to also support sending the hint via email.
@mprasil commented on GitHub (Sep 11, 2018):
Now that #137 is merged, we just need to add appropriate documentation.
@stammw commented on GitHub (Sep 12, 2018):
I hope that #175 will do the job :).
@mprasil commented on GitHub (Sep 13, 2018):
Now that it's merged, I think we can finally close this! Great work @stammw and everyone else.