@fishawack/lab-velocity 1.1.0 → 1.1.2
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.
- package/AuthModule/components/VPasswordValidation.vue +66 -0
- package/AuthModule/js/routes.js +104 -0
- package/AuthModule/routes/account-exists.vue +31 -0
- package/AuthModule/routes/container.vue +40 -0
- package/AuthModule/routes/expired-reset.vue +76 -0
- package/AuthModule/routes/expired-verification.vue +100 -0
- package/AuthModule/routes/force-reset.vue +132 -0
- package/AuthModule/routes/forgot.vue +87 -0
- package/AuthModule/routes/login.vue +137 -0
- package/AuthModule/routes/logincallback.vue +43 -0
- package/AuthModule/routes/loginsso.vue +121 -0
- package/AuthModule/routes/register.vue +152 -0
- package/AuthModule/routes/reset.vue +122 -0
- package/AuthModule/routes/success-forgot.vue +117 -0
- package/AuthModule/routes/success-reset.vue +31 -0
- package/AuthModule/routes/success-verify.vue +25 -0
- package/AuthModule/routes/verify.vue +109 -0
- package/modules/_AuthModule.scss +0 -1
- package/package.json +3 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="relative">
|
|
3
|
+
<section id="resetPasswordForm">
|
|
4
|
+
<h1 class="h2">Success</h1>
|
|
5
|
+
|
|
6
|
+
<p class="mt mb-0 color-21">
|
|
7
|
+
<strong class="">Email: {{ $route.query.email }}</strong>
|
|
8
|
+
</p>
|
|
9
|
+
<p class="mt-0.5">
|
|
10
|
+
Your password has been reset. Please sign in to continue.
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
<router-link
|
|
14
|
+
:to="{name: `${$store.state.authBase}.login`}"
|
|
15
|
+
class="button button--primary px-2"
|
|
16
|
+
>
|
|
17
|
+
<span v-text="'Sign in'" />
|
|
18
|
+
</router-link>
|
|
19
|
+
</section>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
metaInfo() {
|
|
26
|
+
return {
|
|
27
|
+
title: "Reset Password | Success",
|
|
28
|
+
};
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<h1 class="h2">Verification complete</h1>
|
|
3
|
+
<p><strong>Welcome to Expert Partnership, {{ $store.state.user?.name }}!</strong></p>
|
|
4
|
+
<p>Your account has been verified successfully.</p>
|
|
5
|
+
|
|
6
|
+
<router-link
|
|
7
|
+
:to="{name: 'members'}"
|
|
8
|
+
class="button button--primary px-2"
|
|
9
|
+
>
|
|
10
|
+
<span v-text="'Continue'" />
|
|
11
|
+
</router-link>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<script>
|
|
15
|
+
export default {
|
|
16
|
+
mounted(){
|
|
17
|
+
this.$store.commit("setAuth", true);
|
|
18
|
+
|
|
19
|
+
this.$store.dispatch("getUser", {
|
|
20
|
+
errors: this.$root.errors,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
// Problem in this file
|
|
24
|
+
};
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<h1 class="h2">Verify your email address</h1>
|
|
3
|
+
|
|
4
|
+
<form class="form" @submit.prevent="submit">
|
|
5
|
+
<p class="mt mb-0 color-21">
|
|
6
|
+
<strong class="">Email: {{ user?.email }}</strong>
|
|
7
|
+
</p>
|
|
8
|
+
<p class="mt-0.5">
|
|
9
|
+
<strong>Please check your inbox</strong> for a Verification email from Expert Partnership. Click the link in that email to verify your email address and complete your registration.
|
|
10
|
+
</p>
|
|
11
|
+
<p class="mt-0.5">
|
|
12
|
+
Haven’t received the email after 10 minutes?
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<el-input
|
|
16
|
+
class="mt-2 mb-2.5 hidden"
|
|
17
|
+
v-model="form.email"
|
|
18
|
+
label="Email address"
|
|
19
|
+
name="email"
|
|
20
|
+
:error="form.errors"
|
|
21
|
+
type="email"
|
|
22
|
+
placeholder="Email "
|
|
23
|
+
required
|
|
24
|
+
/>
|
|
25
|
+
|
|
26
|
+
<button
|
|
27
|
+
type="submit"
|
|
28
|
+
:disabled="form.processing"
|
|
29
|
+
:loading="form.processing"
|
|
30
|
+
class="button button--primary"
|
|
31
|
+
>
|
|
32
|
+
Re-send verification link
|
|
33
|
+
</button>
|
|
34
|
+
|
|
35
|
+
<p class="disclaimer mt-1.5">
|
|
36
|
+
Having trouble singing in?
|
|
37
|
+
<a :href="contact" class="underline">Contact us</a>
|
|
38
|
+
</p>
|
|
39
|
+
</form>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script>
|
|
43
|
+
import Form from "form-backend-validation";
|
|
44
|
+
import { default as elInput} from "../../form/basic.vue";
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
components: {
|
|
48
|
+
elInput: elInput
|
|
49
|
+
},
|
|
50
|
+
data: () => ({
|
|
51
|
+
user: null,
|
|
52
|
+
form: new Form(
|
|
53
|
+
{
|
|
54
|
+
email: "",
|
|
55
|
+
},
|
|
56
|
+
{ resetOnSuccess: false }
|
|
57
|
+
),
|
|
58
|
+
notification: null,
|
|
59
|
+
contact: process.env.HYDRATE_CONTACT ?? 'mailto:EP@avalerehealth.com',
|
|
60
|
+
}),
|
|
61
|
+
|
|
62
|
+
methods: {
|
|
63
|
+
async submit() {
|
|
64
|
+
try {
|
|
65
|
+
if (this.notification) {
|
|
66
|
+
this.notification.close();
|
|
67
|
+
this.notification = null;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
await this.form.post("/email/verification-notification");
|
|
71
|
+
|
|
72
|
+
this.$notify({
|
|
73
|
+
type: "success",
|
|
74
|
+
message: "Email has been re-sent",
|
|
75
|
+
duration: 10000,
|
|
76
|
+
class: 'el-notification--success el-notification--right-override'
|
|
77
|
+
});
|
|
78
|
+
} catch (e) {
|
|
79
|
+
if (e.response && e.response.status === 429) {
|
|
80
|
+
this.notification = this.$notify({
|
|
81
|
+
type: "warning",
|
|
82
|
+
message: 'Please allow 10 minutes before re-requesting',
|
|
83
|
+
duration: 0,
|
|
84
|
+
class: 'el-notification--warning el-notification--right-override'
|
|
85
|
+
});
|
|
86
|
+
} else if (e.response && e.response.status === 422) {
|
|
87
|
+
this.notification = this.$notify({
|
|
88
|
+
type: "error",
|
|
89
|
+
message: e.response.data.message,
|
|
90
|
+
duration: 0,
|
|
91
|
+
class: 'el-notification--error el-notification--right-override'
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
this.$root.errors(e);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
|
|
101
|
+
async mounted() {
|
|
102
|
+
this.user = await this.$store.dispatch("getUser", {
|
|
103
|
+
errors: this.$root.errors,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
this.form.email = this.user.email;
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
</script>
|
package/modules/_AuthModule.scss
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fishawack/lab-velocity",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Avalere Health branded style system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"setup": "npm ci || npm i && npm run content",
|
|
@@ -63,7 +63,8 @@
|
|
|
63
63
|
"layout",
|
|
64
64
|
"navigation",
|
|
65
65
|
"basic",
|
|
66
|
-
"modules"
|
|
66
|
+
"modules",
|
|
67
|
+
"AuthModule"
|
|
67
68
|
],
|
|
68
69
|
"main": "index.js",
|
|
69
70
|
"release": {
|