mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 06:15:10 +00:00
fix: Password reset
This commit is contained in:
parent
463555e8fb
commit
fe4dd064d1
1 changed files with 3 additions and 2 deletions
|
@ -174,7 +174,8 @@ class LoginController extends State<Login> {
|
|||
],
|
||||
);
|
||||
if (input == null) return;
|
||||
final clientSecret = DateTime.now().millisecondsSinceEpoch.toString();
|
||||
final clientSecret =
|
||||
Matrix.of(context).client.generateUniqueTransactionId();
|
||||
final response = await showFutureLoadingDialog(
|
||||
context: context,
|
||||
future: () => Matrix.of(context).client.requestTokenToResetPasswordEmail(
|
||||
|
@ -216,7 +217,7 @@ class LoginController extends State<Login> {
|
|||
type: AuthenticationTypes.emailIdentity,
|
||||
threepidCreds: [
|
||||
ThreepidCreds(
|
||||
sid: (response as RequestTokenResponse).sid,
|
||||
sid: response.result.sid,
|
||||
clientSecret: clientSecret,
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue