1
0
mirror of https://github.com/bitwarden/server.git synced 2025-05-28 14:54:50 -05:00

On create default ViewPassword to true.

This commit is contained in:
Hinton 2020-06-15 18:54:32 +02:00
parent 21834223fd
commit 7145e3ea88

View File

@ -47,7 +47,8 @@ namespace Bit.Core.Models.Api
Type = Type,
UserId = !hasOrgId ? (Guid?)userId : null,
OrganizationId = allowOrgIdSet && hasOrgId ? new Guid(OrganizationId) : (Guid?)null,
Edit = true
Edit = true,
ViewPassword = true,
};
ToCipherDetails(cipher);
return cipher;