mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-20 00:15:34 +00:00
fix: Support for email registration
This commit is contained in:
parent
dc33e526f3
commit
0ff66f6f58
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue