Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/twofactor_totp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/PersonalTotpSettings.vue4
-rw-r--r--src/services/StateService.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/PersonalTotpSettings.vue b/src/components/PersonalTotpSettings.vue
index 5ad0494..9605f3c 100644
--- a/src/components/PersonalTotpSettings.vue
+++ b/src/components/PersonalTotpSettings.vue
@@ -108,7 +108,7 @@ export default {
this.loading =
this.$store.state.totpState === state.STATE_CREATED
})
- .catch(e => {
+ .catch((e) => {
OC.Notification.showTemporary(
t('twofactor_totp', 'Could not enable TOTP')
)
@@ -117,7 +117,7 @@ export default {
// Restore on error
this.loading = false
})
- .catch(e => Logger.error(e))
+ .catch((e) => Logger.error(e))
},
enableTOTP() {
diff --git a/src/services/StateService.js b/src/services/StateService.js
index 081e92b..5f4f3f5 100644
--- a/src/services/StateService.js
+++ b/src/services/StateService.js
@@ -22,7 +22,7 @@
import Axios from '@nextcloud/axios'
import { generateUrl } from '@nextcloud/router'
-export const saveState = async data => {
+export const saveState = async (data) => {
const url = generateUrl('/apps/twofactor_totp/settings/enable')
const resp = await Axios.post(url, data)