From ecb5be4b1757661f352993e464b3736dfd5178c2 Mon Sep 17 00:00:00 2001 From: konrad Date: Sun, 31 Oct 2021 13:38:13 +0000 Subject: [PATCH] feat: disable password settings for users authenticated with third party auth (#921) Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/921 Reviewed-by: dpschen Co-authored-by: konrad Co-committed-by: konrad --- src/views/user/Settings.vue | 7 +++++-- src/views/user/settings/EmailUpdate.vue | 7 ++++++- src/views/user/settings/PasswordUpdate.vue | 7 ++++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/views/user/Settings.vue b/src/views/user/Settings.vue index 145f18fd..f2612e57 100644 --- a/src/views/user/Settings.vue +++ b/src/views/user/Settings.vue @@ -8,12 +8,12 @@ {{ $t('user.settings.general.title') }} -
  • +
  • {{ $t('user.settings.newPasswordTitle') }}
  • -
  • +
  • {{ $t('user.settings.updateEmailTitle') }} @@ -70,6 +70,9 @@ export default { migratorsEnabled() { return this.$store.getters['config/migratorsEnabled'] }, + isLocalUser() { + return this.$store.state.auth.info?.isLocalUser + }, }, } diff --git a/src/views/user/settings/EmailUpdate.vue b/src/views/user/settings/EmailUpdate.vue index 881341ef..d4cdc0fd 100644 --- a/src/views/user/settings/EmailUpdate.vue +++ b/src/views/user/settings/EmailUpdate.vue @@ -1,5 +1,5 @@