|
|
@ -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,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
],
|
|
|
|