Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit e9d86a5

Browse files
committed
Rename enableSiteAddressLoginOnlyInPrologue config
1 parent 6d36306 commit e9d86a5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticatorConfiguration.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public struct WordPressAuthenticatorConfiguration {
148148

149149
/// If enabled, the prologue screen should hide the WPCom login CTA and show only the entry point to site address login.
150150
///
151-
let enableSiteAddressLoginOnly: Bool
151+
let enableSiteAddressLoginOnlyInPrologue: Bool
152152

153153
/// Designated Initializer
154154
///
@@ -182,7 +182,7 @@ public struct WordPressAuthenticatorConfiguration {
182182
wpcomPasswordInstructions: String? = nil,
183183
skipXMLRPCCheckForSiteDiscovery: Bool = false,
184184
useEnterEmailAddressAsStepValueForGetStartedVC: Bool = false,
185-
enableSiteAddressLoginOnly: Bool = false) {
185+
enableSiteAddressLoginOnlyInPrologue: Bool = false) {
186186

187187
self.wpcomClientId = wpcomClientId
188188
self.wpcomSecret = wpcomSecret
@@ -214,6 +214,6 @@ public struct WordPressAuthenticatorConfiguration {
214214
self.wpcomPasswordInstructions = wpcomPasswordInstructions
215215
self.skipXMLRPCCheckForSiteDiscovery = skipXMLRPCCheckForSiteDiscovery
216216
self.useEnterEmailAddressAsStepValueForGetStartedVC = useEnterEmailAddressAsStepValueForGetStartedVC
217-
self.enableSiteAddressLoginOnly = enableSiteAddressLoginOnly
217+
self.enableSiteAddressLoginOnlyInPrologue = enableSiteAddressLoginOnlyInPrologue
218218
}
219219
}

WordPressAuthenticator/Signin/LoginPrologueViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ class LoginPrologueViewController: LoginViewController {
271271
style: primaryButtonStyle,
272272
onTap: loginTapCallback())
273273
let enterYourSiteAddressButton = StackedButton(title: displayStrings.enterYourSiteAddressButtonTitle,
274-
isPrimary: configuration.enableSiteAddressLoginOnly,
274+
isPrimary: configuration.enableSiteAddressLoginOnlyInPrologue,
275275
configureBodyFontForTitle: true,
276276
accessibilityIdentifier: "Prologue Self Hosted Button",
277277
style: secondaryButtonStyle,
@@ -305,7 +305,7 @@ class LoginPrologueViewController: LoginViewController {
305305

306306
let showDivider = configuration.enableWPComLoginOnlyInPrologue == false &&
307307
configuration.enableSiteCreation == true &&
308-
configuration.enableSiteAddressLoginOnly == false
308+
configuration.enableSiteAddressLoginOnlyInPrologue == false
309309
stackedButtonsViewController.setUpButtons(using: buttons, showDivider: showDivider)
310310
setButtonViewControllerBackground()
311311
}

0 commit comments

Comments
 (0)