ywana-core8 0.1.31 → 0.1.33
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 +14 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +14 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +14 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/login/actions.js +1 -2
- package/src/widgets/login/context.js +3 -3
- package/src/widgets/login/dictionary.js +10 -0
package/package.json
CHANGED
@@ -9,7 +9,7 @@ import { ChangeUserPasswordDialog } from './dialogs'
|
|
9
9
|
export const ForgetUserPasswordAction = (props) => {
|
10
10
|
|
11
11
|
const site = useContext(SiteContext)
|
12
|
-
const { user, icon = false, onOK, onSuccess } = props
|
12
|
+
const { user, icon = false, label="Reset Password", onOK, onSuccess } = props
|
13
13
|
|
14
14
|
async function execute() {
|
15
15
|
try {
|
@@ -30,7 +30,6 @@ export const ForgetUserPasswordAction = (props) => {
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
|
-
const label = <Text>Forgot Password</Text>
|
34
33
|
|
35
34
|
return icon ? (
|
36
35
|
<Icon icon="mail_lock" clickable action={execute} size="small" tooltip={{ text: label, top: "-.5rem", left: "-14rem" }} />
|
@@ -85,7 +85,7 @@ export const LOGIN_CONTEXT = {
|
|
85
85
|
*/
|
86
86
|
async unlockUser(id) {
|
87
87
|
try {
|
88
|
-
await
|
88
|
+
await LOGIN_API.changePassword(id, { unlock: true });
|
89
89
|
} catch (error) {
|
90
90
|
console.log("unblockUser error", error);
|
91
91
|
throw error;
|
@@ -99,7 +99,7 @@ export const LOGIN_CONTEXT = {
|
|
99
99
|
*/
|
100
100
|
async forgetUserPassword(email) {
|
101
101
|
try {
|
102
|
-
await
|
102
|
+
await LOGIN_API.forgetUserPassword(email);
|
103
103
|
} catch (error) {
|
104
104
|
console.log("forgetUserPassword error", error);
|
105
105
|
throw error;
|
@@ -116,7 +116,7 @@ export const LOGIN_CONTEXT = {
|
|
116
116
|
*/
|
117
117
|
async resetUserPassword(token, password, onError, onSuccess) {
|
118
118
|
try {
|
119
|
-
await
|
119
|
+
await LOGIN_API.resetUserPassword(token, password);
|
120
120
|
onSuccess();
|
121
121
|
} catch (error) {
|
122
122
|
onError(error);
|
@@ -10,6 +10,16 @@ export const LOGIN_DICTIONARY = {
|
|
10
10
|
fr: 'Mot de passe oublié'
|
11
11
|
},
|
12
12
|
|
13
|
+
'Reset Password': {
|
14
|
+
en: 'Reset Password',
|
15
|
+
es: 'Restablecer contraseña',
|
16
|
+
de: 'Passwort zurücksetzen',
|
17
|
+
pt: 'Redefinir senha',
|
18
|
+
ca: 'Restablir contrasenya',
|
19
|
+
it: 'Reimposta password',
|
20
|
+
fr: 'Réinitialiser le mot de passe'
|
21
|
+
},
|
22
|
+
|
13
23
|
'Check your email to reset your password': {
|
14
24
|
en: 'Check your email to reset your password',
|
15
25
|
es: 'Revise su correo electrónico para restablecer su contraseña',
|