@social-mail/social-mail-client 1.2.321 → 1.2.322
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/admin/AdminAppIndex.pack.js +19 -20
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +2 -2
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/pages/user/forgot/ForgotPassword.d.ts +2 -1
- package/dist/common/pages/user/forgot/ForgotPassword.d.ts.map +1 -1
- package/dist/common/pages/user/forgot/ForgotPassword.js +19 -20
- package/dist/common/pages/user/forgot/ForgotPassword.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.pack.js +19 -20
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +2 -2
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/pages/user/forgot/ForgotPassword.tsx +12 -16
package/package.json
CHANGED
|
@@ -11,6 +11,8 @@ import Action from "@web-atoms/core/dist/view-model/Action";
|
|
|
11
11
|
import PopupService from "@web-atoms/core/dist/web/services/PopupService";
|
|
12
12
|
import PasswordBox from "@web-atoms/web-controls/dist/basic/PasswordBox";
|
|
13
13
|
import { apiPath } from "../../../apiPath";
|
|
14
|
+
import QRCodeControl from "../../../controls/qrcode/QRCode";
|
|
15
|
+
import sleep from "@web-atoms/core/dist/core/sleep";
|
|
14
16
|
|
|
15
17
|
const css = styled.css `
|
|
16
18
|
& [data-border=frame] {
|
|
@@ -36,6 +38,7 @@ interface IVerification {
|
|
|
36
38
|
id?: string;
|
|
37
39
|
code?: string;
|
|
38
40
|
verified?: string;
|
|
41
|
+
smsConfig?: any;
|
|
39
42
|
}
|
|
40
43
|
|
|
41
44
|
export default class ForgotPassword extends ContentPage {
|
|
@@ -173,30 +176,23 @@ export default class ForgotPassword extends ContentPage {
|
|
|
173
176
|
|
|
174
177
|
if (phone.id) {
|
|
175
178
|
this.model.phone.id = phone.id;
|
|
179
|
+
this.model.phone.smsConfig = phone.smsConfig;
|
|
176
180
|
}
|
|
177
181
|
|
|
178
|
-
this.askCode();
|
|
182
|
+
await this.askCode();
|
|
179
183
|
}
|
|
180
184
|
|
|
181
|
-
askCode() {
|
|
185
|
+
async askCode() {
|
|
182
186
|
this.renderer = <div class={css}>
|
|
183
187
|
<div data-layout="center-all">
|
|
184
|
-
<
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
</h3>
|
|
188
|
-
<FormField label="Code">
|
|
189
|
-
<input type="tel" value={Bind.twoWaysImmediate(() => this.model.phone.code)}/>
|
|
190
|
-
</FormField>
|
|
191
|
-
<div data-layout="row">
|
|
192
|
-
<button
|
|
193
|
-
data-layout="go-button"
|
|
194
|
-
data-submit-event="ask-code">Next</button>
|
|
195
|
-
</div>
|
|
196
|
-
|
|
197
|
-
</Form>
|
|
188
|
+
<QRCodeControl
|
|
189
|
+
smsConfig={this.model.phone.smsConfig}
|
|
190
|
+
/>
|
|
198
191
|
</div>
|
|
199
192
|
</div>;
|
|
193
|
+
|
|
194
|
+
await sleep(3000);
|
|
195
|
+
await this.resetPassword();
|
|
200
196
|
}
|
|
201
197
|
|
|
202
198
|
askPasswords() {
|