diff options
| author | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-18 08:47:50 +0300 |
|---|---|---|
| committer | Maksim Pechnikov <parallel588@gmail.com> | 2020-06-18 08:47:50 +0300 |
| commit | 08444c390348076231f15bd84b613cf39380bb72 (patch) | |
| tree | 4e00c479c37a052e51c8d081a76b0d03b3986127 /src/components/user_settings/mfa_totp.js | |
| parent | e3d0b2f137ccb355c16788e9b890df609cee1698 (diff) | |
| parent | 57626c125d0477716a638854c4243ee0fde96923 (diff) | |
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma-fe into develop
Diffstat (limited to 'src/components/user_settings/mfa_totp.js')
| -rw-r--r-- | src/components/user_settings/mfa_totp.js | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/src/components/user_settings/mfa_totp.js b/src/components/user_settings/mfa_totp.js deleted file mode 100644 index 8408d8e9..00000000 --- a/src/components/user_settings/mfa_totp.js +++ /dev/null @@ -1,49 +0,0 @@ -import Confirm from './confirm.vue' -import { mapState } from 'vuex' - -export default { - props: ['settings'], - data: () => ({ - error: false, - currentPassword: '', - deactivate: false, - inProgress: false // progress peform request to disable otp method - }), - components: { - 'confirm': Confirm - }, - computed: { - isActivated () { - return this.settings.totp - }, - ...mapState({ - backendInteractor: (state) => state.api.backendInteractor - }) - }, - methods: { - doActivate () { - this.$emit('activate') - }, - cancelDeactivate () { this.deactivate = false }, - doDeactivate () { - this.error = null - this.deactivate = true - }, - confirmDeactivate () { // confirm deactivate TOTP method - this.error = null - this.inProgress = true - this.backendInteractor.mfaDisableOTP({ - password: this.currentPassword - }) - .then((res) => { - this.inProgress = false - if (res.error) { - this.error = res.error - return - } - this.deactivate = false - this.$emit('deactivate') - }) - } - } -} |
