Skip to content

Commit

Permalink
Merge pull request #1114 from vector-im/fix_registration_with_email
Browse files Browse the repository at this point in the history
Bug Fix - Registration with email failed when the user validated the …
  • Loading branch information
giomfo authored Mar 21, 2017
2 parents a6939d3 + d0bedbe commit 7372213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Riot/ViewController/AuthenticationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,8 @@ - (IBAction)onButtonPressed:(id)sender
else if (sender == self.submitButton)
{
// Handle here the second screen used to manage the 3rd party ids during the registration.
if (self.authType == MXKAuthenticationTypeRegister)
// Except if there is an external set of parameters defined to perform a registration.
if (self.authType == MXKAuthenticationTypeRegister && !self.externalRegistrationParameters)
{
// Sanity check
if ([self.authInputsView isKindOfClass:AuthInputsView.class])
Expand Down
2 changes: 2 additions & 0 deletions Riot/Views/Authentication/AuthInputsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ - (void)prepareParameters:(void (^)(NSDictionary *parameters))callback
callback(externalRegistrationParameters);

// CAUTION: Do not reset this dictionary here, it is used later to handle this registration until the end (see [updateAuthSessionWithCompletedStages:didUpdateParameters:])

return;
}

// Prepare here parameters dict by checking each required fields.
Expand Down

0 comments on commit 7372213

Please sign in to comment.