Merge pull request #1944 from akhilmhdh/feat/srp-handover

Removing Master password for Oauth/SSO/LDAP users.
This commit is contained in:
Maidul Islam
2024-06-19 12:09:42 -04:00
committed by GitHub
40 changed files with 1348 additions and 356 deletions
+17 -1
View File
@@ -255,7 +255,23 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
description: "Retrieve the current user on the request",
response: {
200: z.object({
user: UsersSchema.merge(UserEncryptionKeysSchema.omit({ verifier: true }))
user: UsersSchema.merge(
UserEncryptionKeysSchema.pick({
clientPublicKey: true,
serverPrivateKey: true,
encryptionVersion: true,
protectedKey: true,
protectedKeyIV: true,
protectedKeyTag: true,
publicKey: true,
encryptedPrivateKey: true,
iv: true,
tag: true,
salt: true,
verifier: true,
userId: true
})
)
})
}
},