Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MX3PidAddManager: Add User-Interactive Auth to /account/3pid/add #737

Merged
merged 3 commits into from
Oct 24, 2019

Conversation

manuroe
Copy link
Contributor

@manuroe manuroe commented Oct 24, 2019

@manuroe manuroe requested a review from SBiOSoftWhare October 24, 2019 07:42
[self tryFinaliseAddEmailSession:threePidAddSession authParams:nil success:success failure:^(NSError * _Nonnull error) {
MXStrongifyAndReturnIfNil(self);

NSDictionary *authParams = [self authParamsFromError:error andPassword:password];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No specific error catching here, it can lead to an infinite loop.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[self authParamsFromError: andPassword:] that can return nil will ensure there is no infinite loop.

MXStrongifyAndReturnIfNil(self);

NSDictionary *authParams = [self authParamsFromError:error andPassword:password];
if (authParams)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above no specific error catching here, it can lead to an infinite loop.

@manuroe manuroe merged commit cf173cb into develop Oct 24, 2019
@manuroe manuroe deleted the riot_2744 branch July 29, 2020 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants