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, password.single,
auth: AuthenticationThreePidCreds( auth: AuthenticationThreePidCreds(
type: AuthenticationTypes.emailIdentity, type: AuthenticationTypes.emailIdentity,
threepidCreds: [ threepidCreds: ThreepidCreds(
ThreepidCreds( sid: response.result.sid,
sid: response.result.sid, clientSecret: clientSecret,
clientSecret: clientSecret, ),
),
],
), ),
), ),
); );

View File

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

View File

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

View File

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