@fishawack/lab-velocity 2.0.0-beta.1 → 2.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +160 -38
  2. package/_Build/vue/components/Icon.vue +33 -0
  3. package/_Build/vue/components/Svg.vue +45 -0
  4. package/_Build/vue/components/basic/Button.vue +109 -0
  5. package/_Build/vue/components/basic/link.vue +64 -0
  6. package/_Build/vue/components/form/Cascader.vue +85 -0
  7. package/_Build/vue/components/form/Checkbox.vue +39 -0
  8. package/_Build/vue/components/form/CheckboxGroup.vue +91 -0
  9. package/_Build/vue/components/form/DatePicker.vue +116 -0
  10. package/_Build/vue/components/form/InputNumber.vue +89 -0
  11. package/_Build/vue/components/form/Select.vue +109 -0
  12. package/_Build/vue/components/form/Spinner.vue +5 -0
  13. package/_Build/vue/components/form/Switch.vue +63 -0
  14. package/_Build/vue/components/form/Upload.vue +101 -0
  15. package/_Build/vue/components/form/Wysiwyg.vue +127 -0
  16. package/_Build/vue/components/form/Wysiwyg2.vue +577 -0
  17. package/_Build/vue/components/form/basic.vue +106 -0
  18. package/_Build/vue/components/form/color.vue +22 -0
  19. package/_Build/vue/components/form/file.vue +89 -0
  20. package/_Build/vue/components/form/input.js +79 -0
  21. package/_Build/vue/components/form/input.vue +105 -0
  22. package/_Build/vue/components/layout/Alert.vue +38 -0
  23. package/_Build/vue/components/layout/Footer.vue +50 -0
  24. package/_Build/vue/components/layout/Header.vue +13 -0
  25. package/_Build/vue/components/layout/Loader.vue +59 -0
  26. package/_Build/vue/components/layout/Tooltip.vue +46 -0
  27. package/_Build/vue/components/layout/pageTitle.vue +18 -0
  28. package/_Build/vue/components/layout/sideBar.vue +25 -0
  29. package/_Build/vue/components/navigation/Breadcrumbs.vue +37 -0
  30. package/_Build/vue/components/navigation/BreadcrumbsItem.vue +19 -0
  31. package/_Build/vue/components/navigation/Menu.vue +14 -0
  32. package/_Build/vue/components/navigation/MenuItem.vue +20 -0
  33. package/_Build/vue/components/navigation/MenuItemGroup.vue +20 -0
  34. package/_Build/vue/components/navigation/SubMenu.vue +20 -0
  35. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/Upload/upload.vue +259 -0
  36. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/create.vue +62 -0
  37. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/edit.vue +98 -0
  38. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/index.vue +90 -0
  39. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/partials/form.vue +181 -0
  40. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/Children/show.vue +267 -0
  41. package/_Build/vue/modules/AuthModule/adminRoutes/PCompanies/parent.vue +36 -0
  42. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/create.vue +113 -0
  43. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/edit.vue +101 -0
  44. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/index.vue +112 -0
  45. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/partials/form.vue +174 -0
  46. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/Children/show.vue +123 -0
  47. package/_Build/vue/modules/AuthModule/adminRoutes/PUsers/parent.vue +36 -0
  48. package/_Build/vue/modules/AuthModule/components/AuthModal.vue +105 -0
  49. package/_Build/vue/modules/AuthModule/components/Chip.vue +70 -0
  50. package/_Build/vue/modules/AuthModule/components/Chips.vue +26 -0
  51. package/_Build/vue/modules/AuthModule/components/FormRole.vue +117 -0
  52. package/_Build/vue/modules/AuthModule/components/VBreadcrumbs.vue +33 -0
  53. package/_Build/vue/modules/AuthModule/components/VFormFooter.vue +52 -0
  54. package/_Build/vue/modules/AuthModule/components/VPageHeader.vue +38 -0
  55. package/_Build/vue/modules/AuthModule/components/VPasswordValidation.vue +106 -0
  56. package/_Build/vue/modules/AuthModule/components/VRoleLegend.vue +43 -0
  57. package/_Build/vue/modules/AuthModule/components/VTable.vue +136 -0
  58. package/_Build/vue/modules/AuthModule/components/VTableSorter.vue +252 -0
  59. package/_Build/vue/modules/AuthModule/js/FakeAPI.js +78 -0
  60. package/_Build/vue/modules/AuthModule/js/axios.js +81 -0
  61. package/_Build/vue/modules/AuthModule/js/router.js +295 -0
  62. package/_Build/vue/modules/AuthModule/js/store.js +62 -0
  63. package/_Build/vue/modules/AuthModule/routes/account-exists.vue +33 -0
  64. package/_Build/vue/modules/AuthModule/routes/change-password.vue +163 -0
  65. package/_Build/vue/modules/AuthModule/routes/container.vue +34 -0
  66. package/_Build/vue/modules/AuthModule/routes/expired-reset.vue +78 -0
  67. package/_Build/vue/modules/AuthModule/routes/expired-verification.vue +101 -0
  68. package/_Build/vue/modules/AuthModule/routes/force-reset.vue +147 -0
  69. package/_Build/vue/modules/AuthModule/routes/forgot.vue +91 -0
  70. package/_Build/vue/modules/AuthModule/routes/login.vue +139 -0
  71. package/_Build/vue/modules/AuthModule/routes/logincallback.vue +39 -0
  72. package/_Build/vue/modules/AuthModule/routes/loginheadless.vue +21 -0
  73. package/_Build/vue/modules/AuthModule/routes/loginsso.vue +132 -0
  74. package/_Build/vue/modules/AuthModule/routes/logout.vue +19 -0
  75. package/_Build/vue/modules/AuthModule/routes/logoutheadless.vue +25 -0
  76. package/_Build/vue/modules/AuthModule/routes/register.vue +171 -0
  77. package/_Build/vue/modules/AuthModule/routes/reset.vue +133 -0
  78. package/_Build/vue/modules/AuthModule/routes/success-forgot.vue +120 -0
  79. package/_Build/vue/modules/AuthModule/routes/success-reset.vue +35 -0
  80. package/_Build/vue/modules/AuthModule/routes/success-verify.vue +30 -0
  81. package/_Build/vue/modules/AuthModule/routes/verify.vue +110 -0
  82. package/_base.scss +0 -1
  83. package/_defaults.scss +2 -13
  84. package/_variables.scss +9 -4
  85. package/{modules/_AuthModule.scss → components/_auth.scss} +19 -68
  86. package/package.json +3 -8
  87. package/vendor.scss +0 -1
  88. package/components/_input.scss +0 -0
  89. package/modules/_AuthVariables.scss +0 -7
  90. /package/{modules → components}/_modal.scss +0 -0
@@ -0,0 +1,91 @@
1
+ <template>
2
+ <div class="relative">
3
+ <section id="forgotPasswordForm">
4
+ <h1 class="h2 h2--small">Reset password</h1>
5
+ <form class="form" @submit.prevent="submit">
6
+ <p class="mt-2">
7
+ Enter the email address associated with your account to
8
+ continue.
9
+ </p>
10
+
11
+ <el-input
12
+ v-if="!form.successful"
13
+ class="mt-3 mb-3"
14
+ v-model="form.email"
15
+ label="Email "
16
+ placeholder="Enter email address"
17
+ name="email"
18
+ :error="form.errors"
19
+ type="email"
20
+ required
21
+ />
22
+
23
+ <elButton
24
+ native-type="submit"
25
+ type="primary"
26
+ :disabled="
27
+ form.processing || !form.email || form.email?.length < 5
28
+ "
29
+ :loading="form.processing"
30
+ @click="onSubmit"
31
+ >
32
+ Continue
33
+ </elButton>
34
+
35
+ <p class="disclaimer mt-3">
36
+ <router-link
37
+ class="color-1 underline"
38
+ :to="{ name: 'auth.login' }"
39
+ >
40
+ Back to Sign in
41
+ </router-link>
42
+ </p>
43
+ </form>
44
+ </section>
45
+ </div>
46
+ </template>
47
+
48
+ <script>
49
+ import Form from "form-backend-validation";
50
+
51
+ export default {
52
+ components: {
53
+ elInput: require("../../../components/form/basic.vue").default,
54
+ elButton: require("../../../components/basic/Button.vue").default,
55
+ },
56
+
57
+ data: () => ({
58
+ form: new Form(
59
+ {
60
+ email: "",
61
+ },
62
+ { resetOnSuccess: false },
63
+ ),
64
+ }),
65
+
66
+ methods: {
67
+ async onSubmit() {
68
+ try {
69
+ await this.form.post("/forgot-password");
70
+
71
+ this.$router.push({
72
+ name: "auth.success-forgot",
73
+ query: { email: this.form.email },
74
+ });
75
+ } catch (e) {
76
+ console.log(e);
77
+ }
78
+ },
79
+ },
80
+
81
+ mounted() {
82
+ this.form.email = this.$route.query.email;
83
+ },
84
+
85
+ metaInfo() {
86
+ return {
87
+ title: "Forgot Password",
88
+ };
89
+ },
90
+ };
91
+ </script>
@@ -0,0 +1,139 @@
1
+ <template>
2
+ <h1 class="h2 h2--small">Sign in</h1>
3
+ <p class="mb-3 mt-2">Enter your password to continue.</p>
4
+
5
+ <form @submit.prevent="submit" class="form" id="memberLoginForm">
6
+ <el-input
7
+ class="mb-3"
8
+ label="Email"
9
+ placeholder="Enter your email address"
10
+ name="email"
11
+ type="email"
12
+ required
13
+ v-model="form.email"
14
+ :error="form.errors"
15
+ />
16
+
17
+ <el-input
18
+ class="mb-3"
19
+ label="Password"
20
+ placeholder="Enter your password"
21
+ name="password"
22
+ type="password"
23
+ required
24
+ v-model="form.password"
25
+ :error="form.errors"
26
+ />
27
+
28
+ <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
29
+ <div style="position: absolute; left: -5000px" aria-hidden="true">
30
+ <input
31
+ ref="honeypot"
32
+ type="text"
33
+ name="b_0e1715593ad9366bc5d3ad8be_7aca058f12"
34
+ tabindex="-1"
35
+ value=""
36
+ />
37
+ </div>
38
+
39
+ <el-button
40
+ native-type="submit"
41
+ type="primary"
42
+ :disabled="
43
+ loading || form.email?.length < 5 || form.password?.length < 8
44
+ "
45
+ @click="onSubmit"
46
+ >
47
+ Continue
48
+ </el-button>
49
+
50
+ <p class="disclaimer mt-3">
51
+ Having trouble signing in?
52
+ <router-link
53
+ class="color-1 underline"
54
+ :to="{ name: 'auth.forgot' }"
55
+ >
56
+ Reset password
57
+ </router-link>
58
+ or
59
+ <a :href="$store.state.auth.contact" class="underline"
60
+ >Contact us</a
61
+ >
62
+ </p>
63
+ </form>
64
+ </template>
65
+
66
+ <script>
67
+ import Form from "form-backend-validation";
68
+
69
+ export default {
70
+ components: {
71
+ elInput: require("../../../components/form/basic.vue").default,
72
+ elButton: require("../../../components/basic/Button.vue").default,
73
+ },
74
+ data() {
75
+ return {
76
+ form: new Form(
77
+ {
78
+ email: this.$route.query.email ?? "",
79
+ password: "",
80
+ device_name: "Mobile device",
81
+ remember: true,
82
+ },
83
+ { resetOnSuccess: false },
84
+ ),
85
+ loading: false,
86
+ };
87
+ },
88
+
89
+ methods: {
90
+ async onSubmit() {
91
+ if (this.loading) return;
92
+
93
+ this.loading = true;
94
+
95
+ try {
96
+ const res = await this.form.post("/login");
97
+
98
+ if (res["logged-in"]) {
99
+ try {
100
+ await this.$store.dispatch("logout");
101
+ } catch (e) {}
102
+
103
+ await this.form.post("/login");
104
+ }
105
+
106
+ await this.postLogin();
107
+ } catch (e) {
108
+ console.log(e);
109
+ } finally {
110
+ this.loading = false;
111
+ }
112
+ },
113
+
114
+ async postLogin() {
115
+ const { data: user } = await this.$store.dispatch("getUser");
116
+
117
+ if (window.dataLayer) {
118
+ window.dataLayer.push({ event: "login", user });
119
+ }
120
+
121
+ if (this.$store.state.auth.intended) {
122
+ this.$router.push(this.$store.state.auth.intended);
123
+ } else {
124
+ this.$router.push({
125
+ name: this.$store.state.auth.redirect,
126
+ });
127
+ }
128
+
129
+ this.$store.commit("setIntended", null);
130
+ },
131
+ },
132
+
133
+ mounted() {
134
+ if (this.$route.query.authenticated) {
135
+ this.postLogin();
136
+ }
137
+ },
138
+ };
139
+ </script>
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <!-- Set Spinner -->
3
+ <div class="mx-auto">
4
+ <VLoader class="mx-auto" />
5
+ </div>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ components: {
11
+ VLoader: require("../../../components/layout/Loader.vue").default,
12
+ },
13
+ data() {
14
+ return {};
15
+ },
16
+
17
+ methods: {
18
+ async postLogin() {
19
+ const { data: user } = await this.$store.dispatch("getUser");
20
+
21
+ if (window.dataLayer) {
22
+ window.dataLayer.push({ event: "login", user });
23
+ }
24
+
25
+ if (this.$store.state.auth.intended) {
26
+ this.$router.push(this.$store.state.auth.intended);
27
+ } else {
28
+ this.$router.push({ name: this.$store.state.auth.redirect });
29
+ }
30
+
31
+ this.$store.commit("setIntended", null);
32
+ },
33
+ },
34
+
35
+ mounted() {
36
+ this.postLogin();
37
+ },
38
+ };
39
+ </script>
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <!-- Set Spinner -->
3
+ <div class="mx-auto">
4
+ <VLoader class="mx-auto" />
5
+ <p v-text="`Logging in...`" />
6
+ </div>
7
+ </template>
8
+
9
+ <script>
10
+ export default {
11
+ mounted() {
12
+ const { authenticated } = this.$store.getters;
13
+
14
+ if (!authenticated) {
15
+ window.location = `${process.env.APP_URL}/hydrate/sso/redirect`;
16
+ } else {
17
+ window.location = `${process.env.APP_URL}/`;
18
+ }
19
+ },
20
+ };
21
+ </script>
@@ -0,0 +1,132 @@
1
+ <template>
2
+ <template v-if="stage === 1">
3
+ <h1 class="h2 h2--small">Sign in</h1>
4
+ <p class="mb-3 mt-2">Enter your email address to continue.</p>
5
+
6
+ <form @submit.prevent="submit" class="form" id="memberLoginForm">
7
+ <el-input
8
+ class="mb-3"
9
+ label="Email"
10
+ placeholder="Enter your email address"
11
+ name="email"
12
+ type="email"
13
+ required
14
+ v-model="form.email"
15
+ :error="form.errors"
16
+ />
17
+
18
+ <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
19
+ <div style="position: absolute; left: -5000px" aria-hidden="true">
20
+ <input
21
+ ref="honeypot"
22
+ type="text"
23
+ name="b_0e1715593ad9366bc5d3ad8be_7aca058f12"
24
+ tabindex="-1"
25
+ value=""
26
+ />
27
+ </div>
28
+
29
+ <el-button
30
+ native-type="submit"
31
+ type="primary"
32
+ :disabled="loading || !isValidEmail(form.email)"
33
+ @click="onSubmit"
34
+ >
35
+ Continue
36
+ </el-button>
37
+
38
+ <p class="disclaimer mt-3">
39
+ Having trouble signing in?
40
+ <a :href="$store.state.auth.contact" class="underline"
41
+ >Contact us</a
42
+ >
43
+ </p>
44
+ </form>
45
+ </template>
46
+ <template v-else>
47
+ <h1 class="h2 h2--small">Sign in with SSO</h1>
48
+ <p class="mt-2">
49
+ Redirecting you to your organisation’s Single Sign-On (SSO) gateway
50
+ <span class="color-highlight">in {{ countdown }} seconds...</span>
51
+ </p>
52
+ <p class="disclaimer mt-3">
53
+ <a :href="redirect_url" class="underline">Go to SSO gateway</a>
54
+ </p>
55
+ </template>
56
+ </template>
57
+
58
+ <script>
59
+ import Form from "form-backend-validation";
60
+
61
+ export default {
62
+ components: {
63
+ elInput: require("../../../components/form/basic.vue").default,
64
+ elButton: require("../../../components/basic/Button.vue").default,
65
+ },
66
+ data() {
67
+ return {
68
+ form: new Form(
69
+ {
70
+ email: "",
71
+ device_name: "Mobile device",
72
+ remember: true,
73
+ },
74
+ { resetOnSuccess: false },
75
+ ),
76
+ countdown: 3,
77
+ loading: false,
78
+ redirect_url: null,
79
+ stage: 1,
80
+ };
81
+ },
82
+
83
+ methods: {
84
+ async onSubmit() {
85
+ if (this.loading) return;
86
+
87
+ this.loading = true;
88
+
89
+ try {
90
+ const res = await this.form.post(`/hydrate/sso/check`);
91
+ if (res["redirect_url"]) {
92
+ this.redirect_url = res["redirect_url"];
93
+ this.setRedirect();
94
+ } else {
95
+ this.$router.push({
96
+ name: "auth.logincreds",
97
+ query: { email: this.form.email },
98
+ });
99
+ }
100
+ } catch (e) {
101
+ console.log(e);
102
+ } finally {
103
+ this.loading = false;
104
+ }
105
+ },
106
+ setRedirect() {
107
+ this.stage = 2;
108
+ let vue = this;
109
+ setTimeout(function () {
110
+ vue.setCountdown();
111
+ }, 1000);
112
+ },
113
+ setCountdown() {
114
+ this.countdown--;
115
+ if (this.countdown === 0) {
116
+ window.location = this.redirect_url;
117
+ } else {
118
+ let vue = this;
119
+ setTimeout(function () {
120
+ vue.setCountdown();
121
+ }, 1000);
122
+ }
123
+ },
124
+ isValidEmail(email) {
125
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
126
+ return emailRegex.test(email);
127
+ },
128
+ },
129
+
130
+ mounted() {},
131
+ };
132
+ </script>
@@ -0,0 +1,19 @@
1
+ <script>
2
+ export default {
3
+ metaInfo() {
4
+ return {
5
+ title: "Logout",
6
+ };
7
+ },
8
+
9
+ async mounted() {
10
+ try {
11
+ await this.$store.dispatch("logout");
12
+ } catch {
13
+ /* empty */
14
+ } finally {
15
+ this.$router.push({ name: "auth.login" });
16
+ }
17
+ },
18
+ };
19
+ </script>
@@ -0,0 +1,25 @@
1
+ <template>
2
+ <p v-text="done ? 'Logged out' : 'Logging out...'" />
3
+ </template>
4
+
5
+ <script>
6
+ export default {
7
+ metaInfo() {
8
+ return {
9
+ title: "Logout",
10
+ };
11
+ },
12
+
13
+ data: () => ({
14
+ done: false,
15
+ }),
16
+
17
+ async mounted() {
18
+ try {
19
+ await this.$store.dispatch("logout");
20
+ } finally {
21
+ this.done = true;
22
+ }
23
+ },
24
+ };
25
+ </script>
@@ -0,0 +1,171 @@
1
+ <template>
2
+ <h1 class="h2 h2--small">Register</h1>
3
+ <p class="mb-3 mt-2">
4
+ Please enter your personal details to complete your registration.
5
+ </p>
6
+
7
+ <form
8
+ @submit.prevent="submit"
9
+ :class="form.errors && form.errors.any() ? 'form error' : 'form'"
10
+ id="memberLoginForm"
11
+ >
12
+ <el-input
13
+ class="mb-2"
14
+ label="Full name"
15
+ placeholder="Enter your full name"
16
+ name="name"
17
+ required
18
+ v-model="form.name"
19
+ :error="form.errors"
20
+ />
21
+
22
+ <el-input
23
+ class="mb-2"
24
+ label="Email"
25
+ placeholder="Enter your email address"
26
+ name="email"
27
+ type="email"
28
+ required
29
+ v-model="form.email"
30
+ :error="form.errors"
31
+ />
32
+
33
+ <el-input
34
+ class="mb-2"
35
+ label="Password"
36
+ name="password"
37
+ placeholder="Create a unique password"
38
+ autocomplete="new-password"
39
+ type="password"
40
+ required
41
+ v-model="form.password"
42
+ :error="form.errors"
43
+ />
44
+
45
+ <VPasswordValidation
46
+ :password="form.password"
47
+ @passwordValid="updatePasswordValidity"
48
+ />
49
+
50
+ <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
51
+ <div style="position: absolute; left: -5000px" aria-hidden="true">
52
+ <input
53
+ ref="honeypot"
54
+ type="text"
55
+ name="b_0e1715593ad9366bc5d3ad8be_7aca058f12"
56
+ tabindex="-1"
57
+ value=""
58
+ />
59
+ </div>
60
+
61
+ <elButton
62
+ native-type="submit"
63
+ type="primary"
64
+ :disabled="
65
+ loading ||
66
+ form.name?.length < 1 ||
67
+ form.email?.length < 5 ||
68
+ !isPasswordValid
69
+ "
70
+ @click="onSubmit"
71
+ >
72
+ Register
73
+ </elButton>
74
+
75
+ <p class="disclaimer mt-3">
76
+ Having trouble registering?
77
+ <a :href="$store.state.auth.contact" class="underline"
78
+ >Contact us</a
79
+ >
80
+ </p>
81
+ </form>
82
+ </template>
83
+
84
+ <script>
85
+ import Form from "form-backend-validation";
86
+ import { ElNotification } from "element-plus";
87
+
88
+ export default {
89
+ data() {
90
+ return {
91
+ form: new Form(
92
+ {
93
+ name: "",
94
+ email: "",
95
+ password: "",
96
+ },
97
+ { resetOnSuccess: false },
98
+ ),
99
+ loading: false,
100
+ isPasswordValid: false,
101
+ };
102
+ },
103
+
104
+ methods: {
105
+ async onSubmit() {
106
+ if (this.loading) return;
107
+
108
+ this.loading = true;
109
+
110
+ try {
111
+ const res = await this.form.post("/register");
112
+
113
+ if (res["logged-in"]) {
114
+ try {
115
+ await this.$store.dispatch("logout");
116
+ } catch (e) {}
117
+
118
+ await this.form.post("/register");
119
+ }
120
+ if (res["redirect"]) {
121
+ // Redirect here
122
+ this.$router.push({
123
+ name: `auth.login`,
124
+ query: { company: res["company"] },
125
+ });
126
+ ElNotification.error({
127
+ title: "Domain is SSO enabled",
128
+ message: "Sign in with your company email address",
129
+ duration: 10000,
130
+ });
131
+ } else {
132
+ await this.postLogin();
133
+ }
134
+ } catch (e) {
135
+ console.log(e);
136
+ } finally {
137
+ this.loading = false;
138
+ }
139
+ },
140
+
141
+ async postLogin() {
142
+ const { data: user } = await this.$store.dispatch("getUser");
143
+
144
+ if (window.dataLayer) {
145
+ window.dataLayer.push({ event: "login", user });
146
+ }
147
+
148
+ if (this.$store.state.auth.intended) {
149
+ this.$router.push(this.$store.state.auth.intended);
150
+ } else {
151
+ this.$router.push({
152
+ name: `auth.verify`,
153
+ });
154
+ // Problem Here
155
+ }
156
+
157
+ this.$store.commit("setIntended", null);
158
+ },
159
+ updatePasswordValidity(isValid) {
160
+ this.isPasswordValid = isValid;
161
+ },
162
+ },
163
+
164
+ components: {
165
+ VPasswordValidation: require("./../components/VPasswordValidation.vue")
166
+ .default,
167
+ elInput: require("../../../components/form/basic.vue").default,
168
+ elButton: require("../../../components/basic/Button.vue").default,
169
+ },
170
+ };
171
+ </script>