]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - shared/models/users/index.ts
Support two factor authentication in backend
authorChocobozzz <me@florianbigard.com>
Wed, 5 Oct 2022 13:37:15 +0000 (15:37 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 7 Oct 2022 08:51:16 +0000 (10:51 +0200)
commit56f47830758ff8e92abcfcc5f35d474ab12fe215
tree854e57ec1b800d6ad740c8e42bee00cbd21e1724
parent7dd7ff4cebc290b09fe00d82046bb58e4e8a800d
Support two factor authentication in backend
27 files changed:
package.json
server/controllers/api/users/index.ts
server/controllers/api/users/token.ts
server/controllers/api/users/two-factor.ts [new file with mode: 0644]
server/helpers/otp.ts [new file with mode: 0644]
server/initializers/constants.ts
server/initializers/migrations/0745-user-otp.ts [new file with mode: 0644]
server/lib/auth/oauth.ts
server/lib/redis.ts
server/middlewares/validators/shared/index.ts
server/middlewares/validators/shared/users.ts [new file with mode: 0644]
server/middlewares/validators/two-factor.ts [new file with mode: 0644]
server/middlewares/validators/users.ts
server/models/user/user.ts
server/tests/api/check-params/index.ts
server/tests/api/check-params/two-factor.ts [new file with mode: 0644]
server/tests/api/users/index.ts
server/tests/api/users/two-factor.ts [new file with mode: 0644]
shared/models/users/index.ts
shared/models/users/two-factor-enable-result.model.ts [new file with mode: 0644]
shared/models/users/user.model.ts
shared/server-commands/server/server.ts
shared/server-commands/users/index.ts
shared/server-commands/users/login-command.ts
shared/server-commands/users/two-factor-command.ts [new file with mode: 0644]
shared/server-commands/users/users-command.ts
yarn.lock