mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: Support for email registration
This commit is contained in:
parent
6250fd02aa
commit
7e5eae573e
@ -50,9 +50,7 @@ class _SignUpPasswordState extends State<SignUpPassword> {
|
||||
await waitForLogin;
|
||||
} on MatrixException catch (exception) {
|
||||
if (exception.requireAdditionalAuthentication) {
|
||||
final stages = exception.authenticationFlows
|
||||
.firstWhere((a) => !a.stages.contains('m.login.email.identity'))
|
||||
.stages;
|
||||
final stages = exception.authenticationFlows.first.stages;
|
||||
|
||||
final currentStage = exception.completedAuthenticationFlows == null
|
||||
? stages.first
|
||||
|
Loading…
Reference in New Issue
Block a user