]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/shared/shared-users/two-factor.service.ts
Allow admins to disable two factor auth
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared-users / two-factor.service.ts
similarity index 98%
rename from client/src/app/+my-account/my-account-settings/my-account-two-factor/two-factor.service.ts
rename to client/src/app/shared/shared-users/two-factor.service.ts
index c0e5ac49271073d2e054b3e192b96d38ce04e30f..9ff916f1540a36f8b2d8ab64e1d9a6169e3da5a6 100644 (file)
@@ -40,7 +40,7 @@ export class TwoFactorService {
 
   disableTwoFactor (options: {
     userId: number
-    currentPassword: string
+    currentPassword?: string
   }) {
     const { userId, currentPassword } = options