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

Commit 8ded346

Browse files
committed
Make XMLRPC URL optional for showVerifyEmailForWPCom
1 parent 63325eb commit 8ded346

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticator.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,12 +211,8 @@ import WordPressKit
211211
/// - siteURL: The URL of the site to log in to.
212212
///
213213
@objc public class func showVerifyEmailForWPCom(from presenter: UIViewController, xmlrpc: String, connectedEmail: String, siteURL: String) {
214-
guard let xmlrpcURL = URL(string: xmlrpc) else {
215-
DDLogError("Failed to initiate XML-RPC URL from \(xmlrpc)")
216-
return
217-
}
218214
let loginFields = LoginFields()
219-
loginFields.meta.xmlrpcURL = xmlrpcURL as NSURL
215+
loginFields.meta.xmlrpcURL = NSURL(string: xmlrpc)
220216
loginFields.username = connectedEmail
221217
loginFields.siteAddress = siteURL
222218

0 commit comments

Comments
 (0)