ywana-core8 0.1.30 → 0.1.32
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -1
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +3 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/login/LoginBox.css +3 -1
- package/src/widgets/login/LoginBox.test.js +1 -1
- package/src/widgets/login/context.js +3 -3
package/package.json
CHANGED
@@ -9,12 +9,14 @@
|
|
9
9
|
}
|
10
10
|
|
11
11
|
.login-box .message {
|
12
|
+
width: 100%;
|
12
13
|
display: flex;
|
13
14
|
justify-content: center;
|
14
15
|
align-items: center;
|
15
16
|
padding-top: 1rem;
|
16
|
-
color: var(--danger-color
|
17
|
+
color: var(--danger-color);
|
17
18
|
font-weight: 500;
|
19
|
+
font-size: 1.3rem;
|
18
20
|
}
|
19
21
|
|
20
22
|
.load-box {
|
@@ -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);
|