diff options
author | Chocobozzz <me@florianbigard.com> | 2022-10-05 15:37:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-10-07 10:51:16 +0200 |
commit | 56f47830758ff8e92abcfcc5f35d474ab12fe215 (patch) | |
tree | 854e57ec1b800d6ad740c8e42bee00cbd21e1724 /shared/server-commands/server/server.ts | |
parent | 7dd7ff4cebc290b09fe00d82046bb58e4e8a800d (diff) | |
download | PeerTube-56f47830758ff8e92abcfcc5f35d474ab12fe215.tar.gz PeerTube-56f47830758ff8e92abcfcc5f35d474ab12fe215.tar.zst PeerTube-56f47830758ff8e92abcfcc5f35d474ab12fe215.zip |
Support two factor authentication in backend
Diffstat (limited to 'shared/server-commands/server/server.ts')
-rw-r--r-- | shared/server-commands/server/server.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index a8f8c1d84..7096faf21 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts | |||
@@ -13,7 +13,15 @@ import { AbusesCommand } from '../moderation' | |||
13 | import { OverviewsCommand } from '../overviews' | 13 | import { OverviewsCommand } from '../overviews' |
14 | import { SearchCommand } from '../search' | 14 | import { SearchCommand } from '../search' |
15 | import { SocketIOCommand } from '../socket' | 15 | import { SocketIOCommand } from '../socket' |
16 | import { AccountsCommand, BlocklistCommand, LoginCommand, NotificationsCommand, SubscriptionsCommand, UsersCommand } from '../users' | 16 | import { |
17 | AccountsCommand, | ||
18 | BlocklistCommand, | ||
19 | LoginCommand, | ||
20 | NotificationsCommand, | ||
21 | SubscriptionsCommand, | ||
22 | TwoFactorCommand, | ||
23 | UsersCommand | ||
24 | } from '../users' | ||
17 | import { | 25 | import { |
18 | BlacklistCommand, | 26 | BlacklistCommand, |
19 | CaptionsCommand, | 27 | CaptionsCommand, |
@@ -136,6 +144,7 @@ export class PeerTubeServer { | |||
136 | videos?: VideosCommand | 144 | videos?: VideosCommand |
137 | videoStats?: VideoStatsCommand | 145 | videoStats?: VideoStatsCommand |
138 | views?: ViewsCommand | 146 | views?: ViewsCommand |
147 | twoFactor?: TwoFactorCommand | ||
139 | 148 | ||
140 | constructor (options: { serverNumber: number } | { url: string }) { | 149 | constructor (options: { serverNumber: number } | { url: string }) { |
141 | if ((options as any).url) { | 150 | if ((options as any).url) { |
@@ -417,5 +426,6 @@ export class PeerTubeServer { | |||
417 | this.videoStudio = new VideoStudioCommand(this) | 426 | this.videoStudio = new VideoStudioCommand(this) |
418 | this.videoStats = new VideoStatsCommand(this) | 427 | this.videoStats = new VideoStatsCommand(this) |
419 | this.views = new ViewsCommand(this) | 428 | this.views = new ViewsCommand(this) |
429 | this.twoFactor = new TwoFactorCommand(this) | ||
420 | } | 430 | } |
421 | } | 431 | } |