fix: Sending ThreepidCreds in UIA

This commit is contained in:
Krille Fear 2021-11-04 16:09:12 +01:00
parent b34faa376f
commit d24558f675
4 changed files with 11 additions and 14 deletions

View File

@ -218,12 +218,10 @@ class LoginController extends State<Login> {
password.single,
auth: AuthenticationThreePidCreds(
type: AuthenticationTypes.emailIdentity,
threepidCreds: [
ThreepidCreds(
sid: response.result.sid,
clientSecret: clientSecret,
),
],
threepidCreds: ThreepidCreds(
sid: response.result.sid,
clientSecret: clientSecret,
),
),
),
);

View File

@ -56,12 +56,10 @@ extension UiaRequestManager on MatrixState {
final auth = AuthenticationThreePidCreds(
session: uiaRequest.session,
type: AuthenticationTypes.emailIdentity,
threepidCreds: [
ThreepidCreds(
sid: currentThreepidCreds.sid,
clientSecret: currentClientSecret,
),
],
threepidCreds: ThreepidCreds(
sid: currentThreepidCreds.sid,
clientSecret: currentClientSecret,
),
);
if (OkCancelResult.ok ==
await showOkCancelAlertDialog(

View File

@ -757,12 +757,12 @@ packages:
source: hosted
version: "0.6.2"
matrix_api_lite:
dependency: transitive
dependency: "direct overridden"
description:
name: matrix_api_lite
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.5.0"
matrix_link_text:
dependency: "direct main"
description:

View File

@ -112,4 +112,5 @@ dependency_overrides:
hosted:
name: geolocator_android
url: https://hanntech-gmbh.gitlab.io/free2pass/flutter-geolocator-floss
matrix_api_lite: ^0.5.0
provider: 5.0.0