diff --git a/front/src/components/auth/Settings.vue b/front/src/components/auth/Settings.vue index c847bde88..8eeae85a9 100644 --- a/front/src/components/auth/Settings.vue +++ b/front/src/components/auth/Settings.vue @@ -35,21 +35,13 @@
- + +
- + +
@@ -62,8 +54,12 @@ import $ from 'jquery' import axios from 'axios' import logger from '@/logging' +import PasswordInput from '@/components/forms/PasswordInput' export default { + components: { + PasswordInput + }, data () { let d = { // We need to initialize the component with any diff --git a/front/src/components/auth/Signup.vue b/front/src/components/auth/Signup.vue index 57966264f..89f4cb1f1 100644 --- a/front/src/components/auth/Signup.vue +++ b/front/src/components/auth/Signup.vue @@ -34,16 +34,7 @@
-
- - - - -
+
@@ -57,8 +48,13 @@ import axios from 'axios' import logger from '@/logging' +import PasswordInput from '@/components/forms/PasswordInput' + export default { name: 'login', + components: { + PasswordInput + }, props: { next: {type: String, default: '/'} }, @@ -69,8 +65,7 @@ export default { password: '', isLoadingInstanceSetting: true, errors: [], - isLoading: false, - showPassword: false + isLoading: false } }, created () { @@ -104,16 +99,7 @@ export default { self.isLoading = false }) } - }, - computed: { - passwordInputType () { - if (this.showPassword) { - return 'text' - } - return 'password' - } } - } diff --git a/front/src/components/forms/PasswordInput.vue b/front/src/components/forms/PasswordInput.vue new file mode 100644 index 000000000..624a92d87 --- /dev/null +++ b/front/src/components/forms/PasswordInput.vue @@ -0,0 +1,31 @@ + +