@live-change/user-frontend 0.8.148 → 0.9.0
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.
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
? ['user_User', api.client.value.user]
|
|
58
58
|
: ['session_Session', api.client.value.session]
|
|
59
59
|
|
|
60
|
-
const dataPromise = live(path().userIdentification.
|
|
60
|
+
const dataPromise = live(path().userIdentification.identification({
|
|
61
61
|
sessionOrUserType: ownerType, sessionOrUser: owner
|
|
62
62
|
}))
|
|
63
63
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
|
|
76
76
|
const path = usePath()
|
|
77
77
|
const userIdentificationPath = computed(() => ownerType.value && owner.value &&
|
|
78
|
-
path.userIdentification.
|
|
78
|
+
path.userIdentification.identification({
|
|
79
79
|
sessionOrUserType: ownerType.value, sessionOrUser: owner.value
|
|
80
80
|
}) || null
|
|
81
81
|
)
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
const settingSource = computed(() => contact.settings.find(s => s.notificationType === notificationType))
|
|
93
93
|
const setting = synchronized({
|
|
94
94
|
source: settingSource,
|
|
95
|
-
update: notificationApi.
|
|
95
|
+
update: notificationApi.setOrUpdateNotificationSetting,
|
|
96
96
|
identifiers: {
|
|
97
97
|
contact: contact[contactType], contactType: contactsData.contactTypeLong,
|
|
98
98
|
notificationType, notification: notificationType
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
form.value.addValidator('passwordHash', () => {
|
|
85
85
|
const value = form.value.getFieldValue('passwordHash')
|
|
86
86
|
console.log("PASSWORDS MATCH?", secondPassword.value, value)
|
|
87
|
-
if(value
|
|
87
|
+
if(value !== secondPassword.value) return "passwordsNotMatch"
|
|
88
88
|
})
|
|
89
89
|
})
|
|
90
90
|
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
|
|
97
97
|
import { live, path } from '@live-change/vue3-ssr'
|
|
98
98
|
const [ authentication ] = await Promise.all([
|
|
99
|
-
live( path().passwordAuthentication.
|
|
99
|
+
live( path().passwordAuthentication.resetPasswordAuthenticationByKey({ key: resetKey }) )
|
|
100
100
|
])
|
|
101
101
|
|
|
102
102
|
const isUnknown = computed(() => authentication.value === null)
|
|
103
103
|
const isExpired = computed(() =>
|
|
104
104
|
authentication.value ? (now.value.toISOString() > authentication.value.expire) : false )
|
|
105
|
-
const isUsed = computed(() => authentication.value && authentication.value.state
|
|
105
|
+
const isUsed = computed(() => authentication.value && authentication.value.state === 'used')
|
|
106
106
|
const isReady = computed(() => !(isUnknown.value || isExpired.value || isUsed.value))
|
|
107
107
|
|
|
108
108
|
function handleDone({ parameters, result }) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-frontend",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
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.
|
|
26
|
-
"@live-change/dao": "^0.
|
|
27
|
-
"@live-change/dao-vue3": "^0.
|
|
28
|
-
"@live-change/dao-websocket": "^0.
|
|
29
|
-
"@live-change/email-service": "^0.
|
|
30
|
-
"@live-change/framework": "^0.
|
|
31
|
-
"@live-change/identicon-service": "^0.
|
|
32
|
-
"@live-change/image-frontend": "^0.
|
|
33
|
-
"@live-change/message-authentication-service": "^0.
|
|
34
|
-
"@live-change/notification-service": "^0.
|
|
35
|
-
"@live-change/password-authentication-service": "^0.
|
|
36
|
-
"@live-change/pattern": "^0.
|
|
37
|
-
"@live-change/secret-code-service": "^0.
|
|
38
|
-
"@live-change/secret-link-service": "^0.
|
|
39
|
-
"@live-change/security-frontend": "^0.
|
|
40
|
-
"@live-change/security-service": "^0.
|
|
41
|
-
"@live-change/session-service": "^0.
|
|
42
|
-
"@live-change/timer-service": "^0.
|
|
43
|
-
"@live-change/upload-service": "^0.
|
|
44
|
-
"@live-change/user-identification-service": "^0.
|
|
45
|
-
"@live-change/user-service": "^0.
|
|
46
|
-
"@live-change/vue3-components": "^0.
|
|
47
|
-
"@live-change/vue3-ssr": "^0.
|
|
25
|
+
"@live-change/cli": "^0.9.0",
|
|
26
|
+
"@live-change/dao": "^0.9.0",
|
|
27
|
+
"@live-change/dao-vue3": "^0.9.0",
|
|
28
|
+
"@live-change/dao-websocket": "^0.9.0",
|
|
29
|
+
"@live-change/email-service": "^0.9.0",
|
|
30
|
+
"@live-change/framework": "^0.9.0",
|
|
31
|
+
"@live-change/identicon-service": "^0.9.0",
|
|
32
|
+
"@live-change/image-frontend": "^0.9.0",
|
|
33
|
+
"@live-change/message-authentication-service": "^0.9.0",
|
|
34
|
+
"@live-change/notification-service": "^0.9.0",
|
|
35
|
+
"@live-change/password-authentication-service": "^0.9.0",
|
|
36
|
+
"@live-change/pattern": "^0.9.0",
|
|
37
|
+
"@live-change/secret-code-service": "^0.9.0",
|
|
38
|
+
"@live-change/secret-link-service": "^0.9.0",
|
|
39
|
+
"@live-change/security-frontend": "^0.9.0",
|
|
40
|
+
"@live-change/security-service": "^0.9.0",
|
|
41
|
+
"@live-change/session-service": "^0.9.0",
|
|
42
|
+
"@live-change/timer-service": "^0.9.0",
|
|
43
|
+
"@live-change/upload-service": "^0.9.0",
|
|
44
|
+
"@live-change/user-identification-service": "^0.9.0",
|
|
45
|
+
"@live-change/user-service": "^0.9.0",
|
|
46
|
+
"@live-change/vue3-components": "^0.9.0",
|
|
47
|
+
"@live-change/vue3-ssr": "^0.9.0",
|
|
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.
|
|
68
|
+
"@live-change/codeceptjs-helper": "^0.9.0",
|
|
69
69
|
"codeceptjs": "^3.6.5",
|
|
70
70
|
"generate-password": "1.7.1",
|
|
71
71
|
"playwright": "^1.41.2",
|
|
@@ -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": "b82513f5b400afcc4b8cc3ae1f9dfe4ac3a2a6eb"
|
|
80
80
|
}
|