mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2025-01-11 18:22:49 +01:00
chore: Better authwebview
This commit is contained in:
parent
2f7749a0c5
commit
d76df0ae4a
@ -20,6 +20,7 @@ class SignUpPassword extends StatefulWidget {
|
||||
class _SignUpPasswordState extends State<SignUpPassword> {
|
||||
final TextEditingController passwordController = TextEditingController();
|
||||
String passwordError;
|
||||
String _lastAuthWebViewStage;
|
||||
bool loading = false;
|
||||
bool showPassword = true;
|
||||
|
||||
@ -66,6 +67,12 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
||||
),
|
||||
);
|
||||
} else {
|
||||
if (_lastAuthWebViewStage == currentStage) {
|
||||
setState(
|
||||
() => passwordError = L10n.of(context).oopsSomethingWentWrong);
|
||||
return setState(() => loading = false);
|
||||
}
|
||||
_lastAuthWebViewStage = currentStage;
|
||||
await AdaptivePageLayout.of(context).pushNamed(
|
||||
'/authwebview/$currentStage/${exception.session}',
|
||||
arguments: () => _signUpAction(
|
||||
|
Loading…
Reference in New Issue
Block a user