mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #3116] [MERGED] Admin password reset #3218
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#3218
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?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3116
Author: @sirux88
Created: 1/6/2023
Status: ✅ Merged
Merged: 2/12/2023
Merged by: @dani-garcia
Base:
main← Head:admin-password-reset📝 Commits (8)
9549408added database migrationc6c45c4working implementationadaefc8fixes for current upstream main26cd5d9Replaced wrong mysql column type62dfeb8improved security, disabling policy usage ona6558f5rust lang specific improvements0d1753acompletly hide reset password policy78abdf0Merge branch 'main' into admin-password-reset📊 Changes
17 files changed (+284 additions, -6 deletions)
View changed files
➕
migrations/mysql/2023-01-06-151600_add_reset_password_support/down.sql(+0 -0)➕
migrations/mysql/2023-01-06-151600_add_reset_password_support/up.sql(+2 -0)➕
migrations/postgresql/2023-01-06-151600_add_reset_password_support/down.sql(+0 -0)➕
migrations/postgresql/2023-01-06-151600_add_reset_password_support/up.sql(+2 -0)➕
migrations/sqlite/2023-01-06-151600_add_reset_password_support/down.sql(+0 -0)➕
migrations/sqlite/2023-01-06-151600_add_reset_password_support/up.sql(+2 -0)📝
src/api/core/organizations.rs(+213 -0)📝
src/config.rs(+1 -0)📝
src/db/models/event.rs(+3 -3)📝
src/db/models/org_policy.rs(+22 -1)📝
src/db/models/organization.rs(+6 -2)📝
src/db/schemas/mysql/schema.rs(+1 -0)📝
src/db/schemas/postgresql/schema.rs(+1 -0)📝
src/db/schemas/sqlite/schema.rs(+1 -0)📝
src/mail.rs(+13 -0)➕
src/static/templates/email/admin_reset_password.hbs(+6 -0)➕
src/static/templates/email/admin_reset_password.html.hbs(+11 -0)📄 Description
Since i'd like to use the admin reset password functionality within my instance I implemented the missing "Reset Master Password" policy and the needed functions
There are two points that (maybe) need improvment:
As i'm not used to programming in rust please feel free to comment and throw any improvements concering syntax.
All other improvements are welcome aswell
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.