AuthenticationViewController: When register do not propose to add 3rd party ids if there is no configured Identity Server.

This commit is contained in:
SBiOSoftWhare
2019-08-13 17:03:05 +02:00
parent eaf46eb5e0
commit 2a741a28e0
@@ -614,11 +614,20 @@
else
{
[self.authenticationActivityIndicator stopAnimating];
// Show the supported 3rd party ids which may be added to the account
authInputsview.thirdPartyIdentifiersHidden = NO;
[self updateRegistrationScreenWithThirdPartyIdentifiersHidden:NO];
BOOL isIdentityServerConfigured = self.identityServerTextField.text.length > 0;
if (isIdentityServerConfigured)
{
// Show the supported 3rd party ids which may be added to the account
authInputsview.thirdPartyIdentifiersHidden = NO;
[self updateRegistrationScreenWithThirdPartyIdentifiersHidden:NO];
}
else
{
// Do not propose to add 3rd party ids if there is no configured Identity Server
[super onButtonPressed:sender];
}
}
}];
}