diff --git a/CHANGES.rst b/CHANGES.rst index 7e7b2e145..2a3e84809 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -3,11 +3,12 @@ Changes in 0.9.3 (2019-08-) Improvements: * Upgrade MatrixKit version ([v0.11.0](https://github.com/matrix-org/matrix-ios-kit/releases/tag/v0.11.0)). - * Privacy: Prompt to accept integration manager policies on use (#2600). - * Privacy: Make clear that device names are publicly readable (#2662). * Widgets: Whitelist [MSC1961](https://github.com/matrix-org/matrix-doc/pull/1961) widget urls. * Settings: CALLS section: Always display the CallKit option but grey it out when not available (only on China). * VoIP: Fallback to matrix.org STUN server with a confirmation dialog (#2646). + * Privacy: Prompt to accept integration manager policies on use (#2600). + * Privacy: Make clear that device names are publicly readable (#2662). + * Privacy: Remove the bind true flag from 3PID calls on registration (#2648). Changes in 0.9.2 (2019-08-08) =============================================== diff --git a/Riot/Modules/Authentication/Views/AuthInputsView.m b/Riot/Modules/Authentication/Views/AuthInputsView.m index 64341f17d..0a5c8866e 100644 --- a/Riot/Modules/Authentication/Views/AuthInputsView.m +++ b/Riot/Modules/Authentication/Views/AuthInputsView.m @@ -629,11 +629,16 @@ NSURL *identServerURL = [NSURL URLWithString:restClient.identityServer]; NSDictionary *parameters; parameters = @{ - @"auth": @{@"session":currentSession.session, @"threepid_creds": @{@"client_secret": submittedEmail.clientSecret, @"id_server": identServerURL.host, @"sid": submittedEmail.sid}, @"type": kMXLoginFlowTypeEmailIdentity}, + @"auth": @{ + @"session":currentSession.session, + @"threepid_creds": @{ + @"client_secret": submittedEmail.clientSecret, + @"id_server": identServerURL.host, + @"sid": submittedEmail.sid + }, + @"type": kMXLoginFlowTypeEmailIdentity}, @"username": self.userLoginTextField.text, @"password": self.passWordTextField.text, - @"bind_msisdn": @([self isFlowCompleted:kMXLoginFlowTypeMSISDN]), - @"bind_email": @(YES) }; [self hideInputsContainer]; @@ -702,11 +707,13 @@ if (response.length) { NSDictionary *parameters = @{ - @"auth": @{@"session":currentSession.session, @"response": response, @"type": kMXLoginFlowTypeRecaptcha}, + @"auth": @{ + @"session":currentSession.session, + @"response": response, + @"type": kMXLoginFlowTypeRecaptcha + }, @"username": self.userLoginTextField.text, @"password": self.passWordTextField.text, - @"bind_msisdn": @([self isFlowCompleted:kMXLoginFlowTypeMSISDN]), - @"bind_email": @([self isFlowCompleted:kMXLoginFlowTypeEmailIdentity]) }; callback(parameters, nil); @@ -725,11 +732,12 @@ else if ([self isFlowSupported:kMXLoginFlowTypeDummy] && ![self isFlowCompleted:kMXLoginFlowTypeDummy]) { parameters = @{ - @"auth": @{@"session":currentSession.session, @"type": kMXLoginFlowTypeDummy}, + @"auth": @{ + @"session":currentSession.session, + @"type": kMXLoginFlowTypeDummy + }, @"username": self.userLoginTextField.text, @"password": self.passWordTextField.text, - @"bind_msisdn": @(NO), - @"bind_email": @(NO) }; } else if ([self isFlowSupported:kMXLoginFlowTypePassword] && ![self isFlowCompleted:kMXLoginFlowTypePassword]) @@ -758,9 +766,7 @@ @"type": kMXLoginFlowTypeTerms }, @"username": self.userLoginTextField.text, - @"password": self.passWordTextField.text, - @"bind_msisdn": @([self isFlowCompleted:kMXLoginFlowTypeMSISDN]), - @"bind_email": @([self isFlowCompleted:kMXLoginFlowTypeEmailIdentity]) + @"password": self.passWordTextField.text }; callback(parameters, nil); }]; @@ -1657,11 +1663,17 @@ NSURL *identServerURL = [NSURL URLWithString:restClient.identityServer]; NSDictionary *parameters; parameters = @{ - @"auth": @{@"session":self->currentSession.session, @"threepid_creds": @{@"client_secret": self->submittedMSISDN.clientSecret, @"id_server": identServerURL.host, @"sid": self->submittedMSISDN.sid}, @"type": kMXLoginFlowTypeMSISDN}, + @"auth": @{ + @"session":self->currentSession.session, + @"threepid_creds": @{ + @"client_secret": self->submittedMSISDN.clientSecret, + @"id_server": identServerURL.host, + @"sid": self->submittedMSISDN.sid + }, + @"type": kMXLoginFlowTypeMSISDN + }, @"username": self.userLoginTextField.text, - @"password": self.passWordTextField.text, - @"bind_msisdn": @(YES), - @"bind_email": @([self isFlowCompleted:kMXLoginFlowTypeEmailIdentity]) + @"password": self.passWordTextField.text }; callback(parameters, nil);