mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(core): Remove sensitive data from User entity during serialization (no-changelog) (#8773)
This commit is contained in:
committed by
GitHub
parent
75e4df138f
commit
d1b48ddcac
@@ -141,4 +141,9 @@ export class User extends WithTimestamps implements IUser {
|
||||
scopeOptions,
|
||||
);
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
const { password, apiKey, mfaSecret, mfaRecoveryCodes, ...rest } = this;
|
||||
return rest;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user