mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 15:24:35 +01:00
fix: auth cancel
This commit is contained in:
@@ -37,6 +37,7 @@ abstract final class BioAuth {
|
|||||||
if (!_isAuthing) {
|
if (!_isAuthing) {
|
||||||
_isAuthing = true;
|
_isAuthing = true;
|
||||||
final val = await goWithResult();
|
final val = await goWithResult();
|
||||||
|
_isAuthing = false;
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case AuthResult.success:
|
case AuthResult.success:
|
||||||
break;
|
break;
|
||||||
@@ -48,7 +49,6 @@ abstract final class BioAuth {
|
|||||||
Stores.setting.useBioAuth.put(false);
|
Stores.setting.useBioAuth.put(false);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_isAuthing = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user