|
|
@ -50,9 +50,7 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
|
|
|
await waitForLogin;
|
|
|
|
await waitForLogin;
|
|
|
|
} on MatrixException catch (exception) {
|
|
|
|
} on MatrixException catch (exception) {
|
|
|
|
if (exception.requireAdditionalAuthentication) {
|
|
|
|
if (exception.requireAdditionalAuthentication) {
|
|
|
|
final stages = exception.authenticationFlows
|
|
|
|
final stages = exception.authenticationFlows.first.stages;
|
|
|
|
.firstWhere((a) => !a.stages.contains('m.login.email.identity'))
|
|
|
|
|
|
|
|
.stages;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
final currentStage = exception.completedAuthenticationFlows == null
|
|
|
|
final currentStage = exception.completedAuthenticationFlows == null
|
|
|
|
? stages.first
|
|
|
|
? stages.first
|
|
|
|