-
+
import GenericActionHandler from "./GenericActionHandler.vue"
+ import GenericPassword from "@/components/Field/GenericPassword.vue";
export default {
name: 'ResetPasswordActionHandler',
+ components: {GenericPassword},
extends: GenericActionHandler,
- data: () => ({
- rules: {
- required: value => !!value || 'Required.',
- min: v => (v !== undefined && v.length >= 8) || 'Min 8 characters',
- },
- show: false,
- }),
};
diff --git a/www/webapp/src/views/ChangeEmail.vue b/www/webapp/src/views/ChangeEmail.vue
index 135608fa6..2ca3da13c 100644
--- a/www/webapp/src/views/ChangeEmail.vue
+++ b/www/webapp/src/views/ChangeEmail.vue
@@ -40,21 +40,13 @@
label="Current Email Address"
:readonly="true"
/>
-
+
+
+
({
@@ -102,7 +96,6 @@
/* password field */
password: '',
- password_errors: [],
/* email field */
new_email: '',
diff --git a/www/webapp/src/views/DeleteAccount.vue b/www/webapp/src/views/DeleteAccount.vue
index a6f415c01..73265ca40 100644
--- a/www/webapp/src/views/DeleteAccount.vue
+++ b/www/webapp/src/views/DeleteAccount.vue
@@ -38,21 +38,13 @@
label="Current Email Address"
:readonly="true"
/>
-
+
+
({
valid: false,
working: false,
done: false,
errors: [],
email: '',
- rules: {
- required: v => !!v || 'Required.',
- },
- show: false,
/* password field */
password: '',
- password_errors: [],
}),
- mounted() {
- this.initialFocus();
- },
async created() {
const self = this;
await withWorking(this.error, () => HTTP
@@ -105,9 +90,6 @@
);
},
methods: {
- initialFocus() {
- return this.$refs.password.focus();
- },
async deleteAccount() {
if (!this.$refs.form.validate()) {
return;
diff --git a/www/webapp/src/views/LoginPage.vue b/www/webapp/src/views/LoginPage.vue
index f8aef4eae..996209472 100644
--- a/www/webapp/src/views/LoginPage.vue
+++ b/www/webapp/src/views/LoginPage.vue
@@ -32,16 +32,9 @@
:autofocus="true"
tabindex="1"
/>
- (hide_password = !hide_password)"
/>
({
@@ -103,10 +98,7 @@ export default {
email_errors: [],
password: '',
- password_rules: [
- v => !!v || 'Enter your password to log in',
- ],
- hide_password: true,
+
errors: [],
}),
methods: {