fix mobile ab/group not update when login with 2fa/email (#8378)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
parent
237d234277
commit
5b52742cf7
@ -455,7 +455,7 @@ Future<bool?> loginDialog() async {
|
|||||||
}
|
}
|
||||||
if (isEmailVerification != null) {
|
if (isEmailVerification != null) {
|
||||||
if (isMobile) {
|
if (isMobile) {
|
||||||
if (close != null) close(false);
|
if (close != null) close(null);
|
||||||
verificationCodeDialog(
|
verificationCodeDialog(
|
||||||
resp.user, resp.secret, isEmailVerification);
|
resp.user, resp.secret, isEmailVerification);
|
||||||
} else {
|
} else {
|
||||||
@ -712,6 +712,11 @@ Future<bool?> verificationCodeDialog(
|
|||||||
dialogButton("Verify", onPressed: getOnSubmit()),
|
dialogButton("Verify", onPressed: getOnSubmit()),
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
// For verification code, desktop update other models in login dialog, mobile need to close login dialog first,
|
||||||
|
// otherwise the soft keyboard will jump out on each key press, so mobile update in verification code dialog.
|
||||||
|
if (isMobile && res == true) {
|
||||||
|
await UserModel.updateOtherModels();
|
||||||
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user