mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Merge pull request #5405 from vector-im/langleyd/5404_add_build_setting_to_hide_social_login
Add build setting to hide social login
This commit is contained in:
commit
1200dd967f
3 changed files with 6 additions and 3 deletions
|
@ -350,6 +350,7 @@ final class BuildSettings: NSObject {
|
|||
static let authScreenShowPhoneNumber = true
|
||||
static let authScreenShowForgotPassword = true
|
||||
static let authScreenShowCustomServerOptions = true
|
||||
static let authScreenShowSocialLoginSection = true
|
||||
|
||||
// MARK: - Unified Search
|
||||
static let unifiedSearchScreenShowPublicDirectory = true
|
||||
|
|
|
@ -482,7 +482,8 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
|||
// Hide input view when there is only social login actions to present
|
||||
if ((self.authType == MXKAuthenticationTypeLogin || self.authType == MXKAuthenticationTypeRegister)
|
||||
&& self.currentLoginSSOFlow
|
||||
&& !self.isAuthSessionContainsPasswordFlow)
|
||||
&& !self.isAuthSessionContainsPasswordFlow
|
||||
&& BuildSettings.authScreenShowSocialLoginSection)
|
||||
{
|
||||
hideAuthInputView = YES;
|
||||
}
|
||||
|
@ -1735,8 +1736,8 @@ static const CGFloat kAuthInputContainerViewMinHeightConstraintConstant = 150.0;
|
|||
- (void)updateSocialLoginViewVisibility
|
||||
{
|
||||
SocialLoginButtonMode socialLoginButtonMode = SocialLoginButtonModeContinue;
|
||||
|
||||
BOOL showSocialLoginView = self.currentLoginSSOFlow ? YES : NO;
|
||||
|
||||
BOOL showSocialLoginView = BuildSettings.authScreenShowSocialLoginSection && (self.currentLoginSSOFlow ? YES : NO);
|
||||
|
||||
switch (self.authType)
|
||||
{
|
||||
|
|
1
changelog.d/5404.bugfix
Normal file
1
changelog.d/5404.bugfix
Normal file
|
@ -0,0 +1 @@
|
|||
Add BuildSetting to hide social login in favour of the simple SSO button.
|
Loading…
Reference in a new issue