summary refs log tree commit diff
path: root/util/src/entities/User.ts
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 17:39:16 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-20 20:14:30 +1000
commit1c2cddb7c4be9fa75eabf3ec9424afd6cb032a7c (patch)
tree27d31fdc0ece49396c43a882842cd3e539ea5779 /util/src/entities/User.ts
parentchore: fix package.json scripts (diff)
downloadserver-1c2cddb7c4be9fa75eabf3ec9424afd6cb032a7c.tar.xz
2fa
Diffstat (limited to 'util/src/entities/User.ts')
-rw-r--r--util/src/entities/User.ts8
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