mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-23 08:32:45 -05:00
[PR #3139] [MERGED] Minor refactoring concering user.setpassword #8171
Reference in New Issue
Block a user
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/3139
Author: @sirux88
Created: 1/13/2023
Status: ✅ Merged
Merged: 1/24/2023
Merged by: @dani-garcia
Base:
main← Head:refactoring-user-setpassword📝 Commits (3)
f8122cdinclude key into user.set_password623d84ainclude key into user.set_password906d9e2Merge branch 'refactoring-user-setpassword' of https://github.com/sirux88/vaultwarden into refactoring-user-setpassword📊 Changes
3 files changed (+11 additions, -12 deletions)
View changed files
📝
src/api/core/accounts.rs(+6 -7)📝
src/api/core/emergency_access.rs(+2 -3)📝
src/db/models/user.rs(+3 -2)📄 Description
Setting a new users password hash always requires setting a new key value aswell
Therefore I refactored the specific method user.set_password and all corresponding usages
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.