mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 17:23:04 +03:00
[PR #3740] [MERGED] Fix UserOrg status during LDAP Import #2941
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/3740
Author: @BlackDex
Created: 7/31/2023
Status: ✅ Merged
Merged: 8/12/2023
Merged by: @dani-garcia
Base:
main← Head:fix-ldap-import-org-status📝 Commits (1)
d892880Fix UserOrg status during LDAP Import📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
src/api/core/public.rs(+1 -1)📄 Description
When a user does not have an account yet and SMTP was disabled it would set the UserOrg status still to Accepted, though that would make it possible to verify the user by the Org Admin's.
This would fail, since the user didn't actually crated his account, and therefor no PublicKey existed.
This PR fixes this behaviour by checking if the password is empty and if so, puts the user to an
Invitedstate instead ofAccepted.Fixes #3737
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.