fix: token exposed on view/[id]
This commit is contained in:
parent
67b71ceffe
commit
d379bf8b1c
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
|
|||
});
|
||||
delete user.password;
|
||||
delete user.totpSecret;
|
||||
delete user.token;
|
||||
|
||||
// @ts-ignore workaround because next wont allow date
|
||||
file.createdAt = file.createdAt.toString();
|
||||
|
|
Loading…
Reference in a new issue