diff --git a/client/pages/account.vue b/client/pages/account.vue index c582c2640d..4bb68727b1 100644 --- a/client/pages/account.vue +++ b/client/pages/account.vue @@ -19,8 +19,8 @@
-

{{ $strings.HeaderChangePassword }}

-
+

{{ $strings.HeaderChangePassword }}

+ @@ -68,6 +68,13 @@ export default { }, isGuest() { return this.usertype === 'guest' + }, + isPasswordAuthEnabled() { + const activeAuthMethods = this.$store.getters['getServerSetting']('authActiveAuthMethods') || [] + return activeAuthMethods.includes('local') + }, + showChangePasswordForm() { + return !this.isGuest && this.isPasswordAuthEnabled } }, methods: {