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

Commit ae77b2a

Browse files
author
Emily Laguna
authored
Merge pull request #590 from wordpress-mobile/task/disable-sign-up
Disable sending of the email if the enableSignUp isn't on
2 parents 595748c + c03a915 commit ae77b2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

WordPressAuthenticator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "WordPressAuthenticator"
3-
s.version = "1.36.0"
3+
s.version = "1.37.0-beta.1"
44

55
s.summary = "WordPressAuthenticator implements an easy and elegant way to authenticate your WordPress Apps."
66
s.description = <<-DESC

WordPressAuthenticator/Unified Auth/View Related/Get Started/GetStartedViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ private extension GetStartedViewController {
400400
let userInfo = (error as NSError).userInfo
401401
let errorCode = userInfo[WordPressComRestApi.ErrorKeyErrorCode] as? String
402402

403-
if errorCode == "unknown_user" {
403+
if WordPressAuthenticator.shared.configuration.enableSignUp, errorCode == "unknown_user" {
404404
self.sendEmail()
405405
} else if errorCode == "email_login_not_allowed" {
406406
// If we get this error, we know we have a WordPress.com user but their

0 commit comments

Comments
 (0)