diff --git a/src/views/settings/components/Authentication.vue b/src/views/settings/components/Authentication.vue index 37c01de2..fa517f35 100644 --- a/src/views/settings/components/Authentication.vue +++ b/src/views/settings/components/Authentication.vue @@ -62,7 +62,7 @@ export default { return _.get(this.settings.settings, [':pleroma', ':oauth2']) || {} }, pleromaAuthenticator() { - return this.settings.description.find(setting => setting.description === 'Authenticator') + return this.settings.description.find(setting => setting.children && setting.children[0].key === 'Pleroma.Web.Auth.Authenticator') }, pleromaAuthenticatorData() { return _.get(this.settings.settings, [':pleroma', 'Pleroma.Web.Auth.Authenticator']) || {} diff --git a/src/views/settings/components/Instance.vue b/src/views/settings/components/Instance.vue index cef402da..904fc088 100644 --- a/src/views/settings/components/Instance.vue +++ b/src/views/settings/components/Instance.vue @@ -50,7 +50,7 @@ export default { 'settings' ]), adminToken() { - return this.settings.description.find(setting => setting.description === `Allows to set a token that can be used to authenticate with the admin api without using an actual user by giving it as the 'admin_token' parameter`) + return this.settings.description.find(setting => setting.children && setting.children[0].key === ':admin_token') }, adminTokenData() { return _.get(this.settings.settings, [':pleroma', ':admin_token']) || {}