mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 18:49:28 +01:00
fix: Password reset
This commit is contained in:
parent
e6948d25f2
commit
64cef3429e
@ -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,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user