Skip to content

Commit e5d0953

Browse files
authored
Merge pull request #7524 from woocommerce/issue/7523-account-mismatch-http
Login: Fix issue log in to a site with HTTP only
2 parents 2c6b434 + 3cb1d19 commit e5d0953

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Podfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ target 'WooCommerce' do
4242
pod 'Gridicons', '~> 1.2.0'
4343

4444
# To allow pod to pick up beta versions use -beta. E.g., 1.1.7-beta.1
45-
pod 'WordPressAuthenticator', '~> 2.2.1-beta.3'
46-
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :commit => '7cdd0c6e44fb1f5356a974cdd6a05c3d2d5210f6'
45+
pod 'WordPressAuthenticator', '~> 2.2.1-beta.5'
46+
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :commit => '1687e5573d611f98859aefa0439b3f48979dcbd0'
4747
# pod 'WordPressAuthenticator', :git => 'https://github.com/wordpress-mobile/WordPressAuthenticator-iOS.git', :branch => ''
4848
# pod 'WordPressAuthenticator', :path => '../WordPressAuthenticator-iOS'
4949

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ PODS:
4242
- WordPress-Aztec-iOS (1.11.0)
4343
- WordPress-Editor-iOS (1.11.0):
4444
- WordPress-Aztec-iOS (= 1.11.0)
45-
- WordPressAuthenticator (2.2.1-beta.3):
45+
- WordPressAuthenticator (2.2.1-beta.5):
4646
- Alamofire (~> 4.8)
4747
- CocoaLumberjack (~> 3.5)
4848
- GoogleSignIn (~> 6.0.1)
@@ -92,7 +92,7 @@ DEPENDENCIES:
9292
- Sourcery (~> 1.0.3)
9393
- StripeTerminal (~> 2.7)
9494
- WordPress-Editor-iOS (~> 1.11.0)
95-
- WordPressAuthenticator (~> 2.2.1-beta.3)
95+
- WordPressAuthenticator (~> 2.2.1-beta.5)
9696
- WordPressKit (~> 4.49.0)
9797
- WordPressShared (~> 1.15)
9898
- WordPressUI (~> 1.12.5)
@@ -163,7 +163,7 @@ SPEC CHECKSUMS:
163163
UIDeviceIdentifier: af4e11e25a2ea670078e2bd677bb0e8144f9f063
164164
WordPress-Aztec-iOS: 050b34d4c3adfb7c60363849049b13d60683b348
165165
WordPress-Editor-iOS: 304098424f1051cb271546c99f906aac296b1b81
166-
WordPressAuthenticator: 40d028b26ceeb093620d3748198f142f4e416e65
166+
WordPressAuthenticator: e898a1e3a297607534b18520921e3fc9e7ccf7b4
167167
WordPressKit: 96deb6ba37ea5eaec4ddcaa53eca04d653246152
168168
WordPressShared: 5477f179c7fe03b5d574f91adda66f67d131827e
169169
WordPressUI: c5be816f6c7b3392224ac21de9e521e89fa108ac
@@ -179,6 +179,6 @@ SPEC CHECKSUMS:
179179
ZendeskSupportProvidersSDK: 2bdf8544f7cd0fd4c002546f5704b813845beb2a
180180
ZendeskSupportSDK: 3a8e508ab1d9dd22dc038df6c694466414e037ba
181181

182-
PODFILE CHECKSUM: 2f80965199751d9b642db8d680aa08c11547a548
182+
PODFILE CHECKSUM: a0cb10fb7598f064a8b7e16a115bfd1923918cf8
183183

184184
COCOAPODS: 1.11.2

WooCommerce/Classes/Authentication/ULAccountMatcher.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ final class ULAccountMatcher {
4343
}
4444

4545
return sites
46-
.map { $0.url }
47-
.contains(originalURL)
46+
.map { $0.url.trimHTTPScheme() }
47+
.contains(originalURL.trimHTTPScheme())
4848
}
4949

5050
/// Returns a locally stored site that matches the given site URL.
@@ -59,7 +59,7 @@ final class ULAccountMatcher {
5959
return nil
6060
}
6161

62-
return sites.first { $0.url == originalURL }
62+
return sites.first { $0.url.contains(originalURL.trimHTTPScheme()) }
6363
}
6464

6565
/// Refreshes locally stored sites that were synced previously.

0 commit comments

Comments
 (0)