ywana-core8 0.1.37 → 0.1.38
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/dist/index.cjs +2 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +2 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +2 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/login/actions.js +3 -4
package/package.json
CHANGED
@@ -9,13 +9,12 @@ import { ChangeUserPasswordDialog } from './dialogs'
|
|
9
9
|
export const ForgetUserPasswordAction = (props) => {
|
10
10
|
|
11
11
|
const site = useContext(SiteContext)
|
12
|
-
const { user={}, icon = false, label="Reset Password", onOK
|
12
|
+
const { user = {}, icon = false, label = "Reset Password", onOK } = props
|
13
13
|
|
14
14
|
async function execute() {
|
15
15
|
try {
|
16
16
|
const { email } = user
|
17
17
|
await onOK(email)
|
18
|
-
if (onSuccess) onSuccess()
|
19
18
|
site.notify({
|
20
19
|
title: <Text>Forgot Password</Text>,
|
21
20
|
body: <Text>Check your email to reset your password</Text>,
|
@@ -23,7 +22,7 @@ export const ForgetUserPasswordAction = (props) => {
|
|
23
22
|
})
|
24
23
|
} catch (error) {
|
25
24
|
site.notify({
|
26
|
-
title: "
|
25
|
+
title: "Errorrrrr",
|
27
26
|
body: error.message,
|
28
27
|
type: "danger",
|
29
28
|
icon: "error"
|
@@ -82,7 +81,7 @@ export const ChangeUserPasswordAction = (props) => {
|
|
82
81
|
|
83
82
|
const site = useContext(SiteContext)
|
84
83
|
|
85
|
-
const { user, icon = false, oldPwdRequired=true } = props
|
84
|
+
const { user, icon = false, oldPwdRequired = true } = props
|
86
85
|
|
87
86
|
const errorMessages = useMemo(() => ({
|
88
87
|
"ERROR OLD PASSWORD": { title: "Error", description: <Text>Incorrect old password</Text> },
|