diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-20 17:39:16 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-20 20:14:30 +1000 |
commit | 1c2cddb7c4be9fa75eabf3ec9424afd6cb032a7c (patch) | |
tree | 27d31fdc0ece49396c43a882842cd3e539ea5779 /util/src/entities/User.ts | |
parent | chore: fix package.json scripts (diff) | |
download | server-1c2cddb7c4be9fa75eabf3ec9424afd6cb032a7c.tar.xz |
2fa
Diffstat (limited to 'util/src/entities/User.ts')
-rw-r--r-- | util/src/entities/User.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/src/entities/User.ts b/util/src/entities/User.ts index 9b1c494e..79d415ca 100644 --- a/util/src/entities/User.ts +++ b/util/src/entities/User.ts @@ -1,4 +1,4 @@ -import { Column, Entity, FindOneOptions, JoinColumn, ManyToMany, OneToMany, RelationId } from "typeorm"; +import { Column, Entity, FindOneOptions, JoinColumn, OneToMany } from "typeorm"; import { BaseClass } from "./BaseClass"; import { BitField } from "../util/BitField"; import { Relationship } from "./Relationship"; @@ -108,6 +108,12 @@ export class User extends BaseClass { @Column({ select: false }) mfa_enabled: boolean; // if multi factor authentication is enabled + @Column({ select: false, nullable: true }) + totp_secret?: string; + + @Column({ nullable: true, select: false }) + totp_last_ticket?: string; + @Column() created_at: Date; // registration date |