fix: Password reset

This commit is contained in:
Christian Pauly 2021-09-19 13:08:33 +02:00
parent e6948d25f2
commit 64cef3429e

View File

@ -174,7 +174,8 @@ class LoginController extends State<Login> {
], ],
); );
if (input == null) return; if (input == null) return;
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString(); final clientSecret =
Matrix.of(context).client.generateUniqueTransactionId();
final response = await showFutureLoadingDialog( final response = await showFutureLoadingDialog(
context: context, context: context,
future: () => Matrix.of(context).client.requestTokenToResetPasswordEmail( future: () => Matrix.of(context).client.requestTokenToResetPasswordEmail(
@ -216,7 +217,7 @@ class LoginController extends State<Login> {
type: AuthenticationTypes.emailIdentity, type: AuthenticationTypes.emailIdentity,
threepidCreds: [ threepidCreds: [
ThreepidCreds( ThreepidCreds(
sid: (response as RequestTokenResponse).sid, sid: response.result.sid,
clientSecret: clientSecret, clientSecret: clientSecret,
), ),
], ],