@live-change/user-frontend 0.9.3 → 0.9.4
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/front/src/message-auth/email/ConnectEmail.vue +9 -3
- package/front/src/message-auth/email/ResetPasswordEmail.vue +9 -3
- package/front/src/message-auth/email/SignInEmail.vue +8 -3
- package/front/src/message-auth/email/SignUpEmail.vue +9 -3
- package/front/src/message-auth/sms/ConnectSms.vue +11 -5
- package/front/src/message-auth/sms/ResetPasswordSms.vue +11 -5
- package/front/src/message-auth/sms/SignInSms.vue +10 -5
- package/front/src/message-auth/sms/SignUpSms.vue +10 -3
- package/front/src/sign/GoogleAuth.vue +5 -1
- package/front/src/sign/LinkedinAuth.vue +5 -1
- package/front/src/utils/googleAuth.js +1 -1
- package/front/src/utils/linkedinAuth.js +1 -1
- package/package.json +26 -26
|
@@ -74,16 +74,22 @@
|
|
|
74
74
|
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
75
75
|
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
78
|
+
const api = useApi()
|
|
79
|
+
|
|
80
|
+
const {
|
|
81
|
+
brandName, brandDomain, baseHref
|
|
82
|
+
} = api.metadata.config.value
|
|
83
|
+
|
|
78
84
|
const metadata = {
|
|
79
|
-
from: `${
|
|
85
|
+
from: `${brandName} <admin@${brandDomain}>`,
|
|
80
86
|
subject: 'Confirm your email address.',
|
|
81
87
|
to: contact
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
import { useRouter } from 'vue-router'
|
|
85
91
|
const router = useRouter()
|
|
86
|
-
const linkAddress =
|
|
92
|
+
const linkAddress = baseHref + router.resolve({
|
|
87
93
|
name: 'user:link',
|
|
88
94
|
params: {
|
|
89
95
|
secretCode: secretLink.secret.secretCode
|
|
@@ -74,16 +74,22 @@
|
|
|
74
74
|
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
75
75
|
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
78
|
+
const api = useApi()
|
|
79
|
+
|
|
80
|
+
const {
|
|
81
|
+
brandName, brandDomain, baseHref
|
|
82
|
+
} = api.metadata.config.value
|
|
83
|
+
|
|
78
84
|
const metadata = {
|
|
79
|
-
from: `${
|
|
85
|
+
from: `${brandName} <admin@${brandDomain}>`,
|
|
80
86
|
subject: 'Confirm your email address.',
|
|
81
87
|
to: contact
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
import { useRouter } from 'vue-router'
|
|
85
91
|
const router = useRouter()
|
|
86
|
-
const linkAddress =
|
|
92
|
+
const linkAddress = baseHref + router.resolve({
|
|
87
93
|
name: 'user:link',
|
|
88
94
|
params: {
|
|
89
95
|
secretCode: secretLink.secret.secretCode
|
|
@@ -74,17 +74,22 @@
|
|
|
74
74
|
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
75
75
|
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
76
76
|
|
|
77
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
78
|
+
const api = useApi()
|
|
79
|
+
|
|
80
|
+
const {
|
|
81
|
+
brandName, brandDomain, baseHref
|
|
82
|
+
} = api.metadata.config.value
|
|
77
83
|
|
|
78
|
-
const brandName = ENV_BRAND_NAME
|
|
79
84
|
const metadata = {
|
|
80
|
-
from: `${
|
|
85
|
+
from: `${brandName} <admin@${brandDomain}>`,
|
|
81
86
|
subject: 'Confirm your email address.',
|
|
82
87
|
to: contact
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
import { useRouter } from 'vue-router'
|
|
86
91
|
const router = useRouter()
|
|
87
|
-
const linkAddress =
|
|
92
|
+
const linkAddress = baseHref + router.resolve({
|
|
88
93
|
name: 'user:link',
|
|
89
94
|
params: {
|
|
90
95
|
secretCode: secretLink.secret.secretCode
|
|
@@ -74,16 +74,22 @@
|
|
|
74
74
|
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
75
75
|
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
76
76
|
|
|
77
|
-
|
|
77
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
78
|
+
const api = useApi()
|
|
79
|
+
|
|
80
|
+
const {
|
|
81
|
+
brandName, brandDomain, baseHref
|
|
82
|
+
} = api.metadata.config.value
|
|
83
|
+
|
|
78
84
|
const metadata = {
|
|
79
|
-
from: `${
|
|
85
|
+
from: `${brandName} <admin@${brandDomain}>`,
|
|
80
86
|
subject: 'Confirm your email address.',
|
|
81
87
|
to: contact
|
|
82
88
|
}
|
|
83
89
|
|
|
84
90
|
import { useRouter } from 'vue-router'
|
|
85
91
|
const router = useRouter()
|
|
86
|
-
const linkAddress =
|
|
92
|
+
const linkAddress = baseHref + router.resolve({
|
|
87
93
|
name: 'user:link',
|
|
88
94
|
params: {
|
|
89
95
|
secretCode: secretLink.secret.secretCode
|
|
@@ -29,19 +29,25 @@
|
|
|
29
29
|
const data = JSON.parse(json)
|
|
30
30
|
const secrets = data.secrets
|
|
31
31
|
|
|
32
|
-
const secretLink = secrets.find(secret => secret.type
|
|
32
|
+
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
33
33
|
|
|
34
|
-
const secretCode = secrets.find(secret => secret.type
|
|
34
|
+
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
35
|
+
|
|
36
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
37
|
+
const api = useApi()
|
|
38
|
+
|
|
39
|
+
const {
|
|
40
|
+
brandName, baseHref, brandSmsFrom
|
|
41
|
+
} = api.metadata.config.value
|
|
35
42
|
|
|
36
|
-
const brandName = ENV_BRAND_NAME
|
|
37
43
|
const metadata = {
|
|
38
|
-
from:
|
|
44
|
+
from: brandSmsFrom,
|
|
39
45
|
to: contact
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
import { useRouter } from 'vue-router'
|
|
43
49
|
const router = useRouter()
|
|
44
|
-
const linkAddress =
|
|
50
|
+
const linkAddress = baseHref + router.resolve({
|
|
45
51
|
name: 'user:link',
|
|
46
52
|
params: {
|
|
47
53
|
secretCode: secretLink.secret.secretCode
|
|
@@ -27,19 +27,25 @@
|
|
|
27
27
|
const data = JSON.parse(json)
|
|
28
28
|
const secrets = data.secrets
|
|
29
29
|
|
|
30
|
-
const secretLink = secrets.find(secret => secret.type
|
|
30
|
+
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
31
31
|
|
|
32
|
-
const secretCode = secrets.find(secret => secret.type
|
|
32
|
+
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
33
|
+
|
|
34
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
35
|
+
const api = useApi()
|
|
36
|
+
|
|
37
|
+
const {
|
|
38
|
+
brandName, baseHref, brandSmsFrom
|
|
39
|
+
} = api.metadata.config.value
|
|
33
40
|
|
|
34
|
-
const brandName = ENV_BRAND_NAME
|
|
35
41
|
const metadata = {
|
|
36
|
-
from:
|
|
42
|
+
from: brandSmsFrom,
|
|
37
43
|
to: contact
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
import { useRouter } from 'vue-router'
|
|
41
47
|
const router = useRouter()
|
|
42
|
-
const linkAddress =
|
|
48
|
+
const linkAddress = baseHref + router.resolve({
|
|
43
49
|
name: 'user:link',
|
|
44
50
|
params: {
|
|
45
51
|
secretCode: secretLink.secret.secretCode
|
|
@@ -27,20 +27,25 @@
|
|
|
27
27
|
const data = JSON.parse(json)
|
|
28
28
|
const secrets = data.secrets
|
|
29
29
|
|
|
30
|
-
const secretLink = secrets.find(secret => secret.type
|
|
30
|
+
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
31
|
+
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
31
32
|
|
|
32
|
-
const secretCode = secrets.find(secret => secret.type == 'code')
|
|
33
33
|
|
|
34
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
35
|
+
const api = useApi()
|
|
36
|
+
|
|
37
|
+
const {
|
|
38
|
+
brandName, baseHref, brandSmsFrom
|
|
39
|
+
} = api.metadata.config.value
|
|
34
40
|
|
|
35
|
-
const brandName = ENV_BRAND_NAME
|
|
36
41
|
const metadata = {
|
|
37
|
-
from:
|
|
42
|
+
from: brandSmsFrom,
|
|
38
43
|
to: contact
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
import { useRouter } from 'vue-router'
|
|
42
47
|
const router = useRouter()
|
|
43
|
-
const linkAddress =
|
|
48
|
+
const linkAddress = baseHref + router.resolve({
|
|
44
49
|
name: 'user:link',
|
|
45
50
|
params: {
|
|
46
51
|
secretCode: secretLink.secret.secretCode
|
|
@@ -30,15 +30,22 @@
|
|
|
30
30
|
const secretLink = secrets.find(secret => secret.type === 'link')
|
|
31
31
|
const secretCode = secrets.find(secret => secret.type === 'code')
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
|
|
34
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
35
|
+
const api = useApi()
|
|
36
|
+
|
|
37
|
+
const {
|
|
38
|
+
brandName, baseHref, brandSmsFrom
|
|
39
|
+
} = api.metadata.config.value
|
|
40
|
+
|
|
34
41
|
const metadata = {
|
|
35
|
-
from:
|
|
42
|
+
from: brandSmsFrom,
|
|
36
43
|
to: contact
|
|
37
44
|
}
|
|
38
45
|
|
|
39
46
|
import { useRouter } from 'vue-router'
|
|
40
47
|
const router = useRouter()
|
|
41
|
-
const linkAddress =
|
|
48
|
+
const linkAddress = baseHref + router.resolve({
|
|
42
49
|
name: 'user:link',
|
|
43
50
|
params: {
|
|
44
51
|
secretCode: secretLink.secret.secretCode
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
const state = ref('waiting')
|
|
61
61
|
const error = ref(null)
|
|
62
62
|
|
|
63
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
64
|
+
const api = useApi()
|
|
65
|
+
|
|
63
66
|
function googleAuth() {
|
|
64
67
|
state.value = 'waiting'
|
|
65
68
|
|
|
@@ -76,7 +79,8 @@
|
|
|
76
79
|
scope: (scopes?.value ?? []).join(' '),
|
|
77
80
|
redirectUri: document.location.protocol + '//' + document.location.host
|
|
78
81
|
+ router.resolve({ name: 'user:googleAuthReturn', params: { action: action.value } }).href,
|
|
79
|
-
accessType: accessType.value
|
|
82
|
+
accessType: accessType.value,
|
|
83
|
+
clientId: api.services.googleAuthentication.config.clientId
|
|
80
84
|
})
|
|
81
85
|
|
|
82
86
|
}
|
|
@@ -60,6 +60,9 @@
|
|
|
60
60
|
const state = ref('waiting')
|
|
61
61
|
const error = ref(null)
|
|
62
62
|
|
|
63
|
+
import { useApi } from '@live-change/vue3-ssr'
|
|
64
|
+
const api = useApi()
|
|
65
|
+
|
|
63
66
|
function linkedinAuth() {
|
|
64
67
|
state.value = 'waiting'
|
|
65
68
|
|
|
@@ -76,7 +79,8 @@
|
|
|
76
79
|
scope: (scopes.value ?? []).join(' '),
|
|
77
80
|
redirectUri: document.location.protocol + '//' + document.location.host
|
|
78
81
|
+ router.resolve({ name: 'user:linkedinAuthReturn', params: { action: action.value } }).href,
|
|
79
|
-
accessType: accessType.value
|
|
82
|
+
accessType: accessType.value,
|
|
83
|
+
clientId: api.services.linkedinAuthentication.config.clientId
|
|
80
84
|
})
|
|
81
85
|
|
|
82
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-frontend",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"memDev": "node --inspect --expose-gc server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
|
|
6
6
|
"localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/cli": "^0.9.
|
|
26
|
-
"@live-change/dao": "^0.9.
|
|
27
|
-
"@live-change/dao-vue3": "^0.9.
|
|
28
|
-
"@live-change/dao-websocket": "^0.9.
|
|
29
|
-
"@live-change/email-service": "^0.9.
|
|
30
|
-
"@live-change/framework": "^0.9.
|
|
31
|
-
"@live-change/identicon-service": "^0.9.
|
|
32
|
-
"@live-change/image-frontend": "^0.9.
|
|
33
|
-
"@live-change/message-authentication-service": "^0.9.
|
|
34
|
-
"@live-change/notification-service": "^0.9.
|
|
35
|
-
"@live-change/password-authentication-service": "^0.9.
|
|
36
|
-
"@live-change/pattern": "^0.9.
|
|
37
|
-
"@live-change/secret-code-service": "^0.9.
|
|
38
|
-
"@live-change/secret-link-service": "^0.9.
|
|
39
|
-
"@live-change/security-frontend": "^0.9.
|
|
40
|
-
"@live-change/security-service": "^0.9.
|
|
41
|
-
"@live-change/session-service": "^0.9.
|
|
42
|
-
"@live-change/timer-service": "^0.9.
|
|
43
|
-
"@live-change/upload-service": "^0.9.
|
|
44
|
-
"@live-change/user-identification-service": "^0.9.
|
|
45
|
-
"@live-change/user-service": "^0.9.
|
|
46
|
-
"@live-change/vue3-components": "^0.9.
|
|
47
|
-
"@live-change/vue3-ssr": "^0.9.
|
|
25
|
+
"@live-change/cli": "^0.9.4",
|
|
26
|
+
"@live-change/dao": "^0.9.4",
|
|
27
|
+
"@live-change/dao-vue3": "^0.9.4",
|
|
28
|
+
"@live-change/dao-websocket": "^0.9.4",
|
|
29
|
+
"@live-change/email-service": "^0.9.4",
|
|
30
|
+
"@live-change/framework": "^0.9.4",
|
|
31
|
+
"@live-change/identicon-service": "^0.9.4",
|
|
32
|
+
"@live-change/image-frontend": "^0.9.4",
|
|
33
|
+
"@live-change/message-authentication-service": "^0.9.4",
|
|
34
|
+
"@live-change/notification-service": "^0.9.4",
|
|
35
|
+
"@live-change/password-authentication-service": "^0.9.4",
|
|
36
|
+
"@live-change/pattern": "^0.9.4",
|
|
37
|
+
"@live-change/secret-code-service": "^0.9.4",
|
|
38
|
+
"@live-change/secret-link-service": "^0.9.4",
|
|
39
|
+
"@live-change/security-frontend": "^0.9.4",
|
|
40
|
+
"@live-change/security-service": "^0.9.4",
|
|
41
|
+
"@live-change/session-service": "^0.9.4",
|
|
42
|
+
"@live-change/timer-service": "^0.9.4",
|
|
43
|
+
"@live-change/upload-service": "^0.9.4",
|
|
44
|
+
"@live-change/user-identification-service": "^0.9.4",
|
|
45
|
+
"@live-change/user-service": "^0.9.4",
|
|
46
|
+
"@live-change/vue3-components": "^0.9.4",
|
|
47
|
+
"@live-change/vue3-ssr": "^0.9.4",
|
|
48
48
|
"@vueuse/core": "^10.11.0",
|
|
49
49
|
"codeceptjs-assert": "^0.0.5",
|
|
50
50
|
"codeceptjs-video-helper": "0.1.3",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"wtfnode": "^0.9.1"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@live-change/codeceptjs-helper": "^0.9.
|
|
68
|
+
"@live-change/codeceptjs-helper": "^0.9.4",
|
|
69
69
|
"codeceptjs": "^3.6.5",
|
|
70
70
|
"generate-password": "1.7.1",
|
|
71
71
|
"playwright": "1.48.1",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"author": "Michał Łaszczewski <michal@laszczewski.pl>",
|
|
77
77
|
"license": "BSD-3-Clause",
|
|
78
78
|
"description": "",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "98fd51a1a5fea3ff8adff3662ef1e4a00774eed6"
|
|
80
80
|
}
|