Skip to content
New issue

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

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

Already on GitHub? # to your account

vault.Initialize check db readability #105

Merged
merged 4 commits into from
Jan 3, 2022
Merged

Conversation

msladek
Copy link
Contributor

@msladek msladek commented Jan 3, 2022

This solves #104

sql.Open doesn't create a connection to the database according to the documentation, thus it's not sufficient to check if the provided master password is actually correct. Additionally, we should execute a query that always runs without errors for any vault if the correct master password was provided.

@hazcod hazcod merged commit 934bcd2 into hazcod:master Jan 3, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants