fix(xo-server): remove password when sign in with provider

Password can no longer be used/edited when an auth provider is registered.

For security concerns, this useless password should be removed from the database.
This commit is contained in:
Julien Fontanet
2023-07-31 12:29:24 +02:00
committed by Florent BEAUCHAMP
parent 221cd40199
commit fc1c809a18

View File

@@ -297,6 +297,7 @@ export default class {
data: data !== undefined ? data : user.authProviders?.[providerId]?.data,
},
},
password: null,
})
}