1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-23 12:31:06 -05:00

Add userId to auth success response

This commit is contained in:
Matt Gibson 2025-05-19 09:54:21 -07:00
parent a07cce26f3
commit e1d6caa10f
No known key found for this signature in database
GPG Key ID: 7CBCA182C13B0912

View File

@ -230,6 +230,7 @@ public abstract class BaseRequestValidator<T> where T : class
customResponse.Add("KdfMemory", user.KdfMemory); customResponse.Add("KdfMemory", user.KdfMemory);
customResponse.Add("KdfParallelism", user.KdfParallelism); customResponse.Add("KdfParallelism", user.KdfParallelism);
customResponse.Add("UserDecryptionOptions", await CreateUserDecryptionOptionsAsync(user, device, GetSubject(context))); customResponse.Add("UserDecryptionOptions", await CreateUserDecryptionOptionsAsync(user, device, GetSubject(context)));
customResponse.Add("UserId", user.Id.ToString());
if (sendRememberToken) if (sendRememberToken)
{ {