From 878ad971ee75da0c6b5638459367021a3944f968 Mon Sep 17 00:00:00 2001
From: Sean McArthur <sean.monstar@gmail.com>
Date: Fri, 27 Jul 2012 13:16:26 -0700
Subject: [PATCH] updating reference to /signup to /signin

---
 resources/static/pages/js/forgot.js            | 8 ++------
 resources/static/test/cases/pages/js/forgot.js | 4 ++--
 2 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/resources/static/pages/js/forgot.js b/resources/static/pages/js/forgot.js
index 300e2a95f..8e38c847c 100644
--- a/resources/static/pages/js/forgot.js
+++ b/resources/static/pages/js/forgot.js
@@ -65,13 +65,9 @@ BrowserID.forgot = (function() {
     }
 
     // We know an email address was stored, now check if it is registered.  If
-    // it is not registered, kick the user over to the signup page.  If it is
-    // registered, but a primary, kick them over to the signin page.
+    // it is not registered, or is a primary, kick them over to the signin page.
     user.addressInfo(email, function(info) {
-      if (!info.known) {
-        doc.location.href = "/signup";
-      }
-      else if(info.type === "primary") {
+      if (!info.known || info.type === "primary") {
         doc.location.href="/signin";
       }
 
diff --git a/resources/static/test/cases/pages/js/forgot.js b/resources/static/test/cases/pages/js/forgot.js
index d8252629c..fbf8ec738 100644
--- a/resources/static/test/cases/pages/js/forgot.js
+++ b/resources/static/test/cases/pages/js/forgot.js
@@ -62,11 +62,11 @@
     });
   });
 
-  asyncTest("start with stored unknown secondary email - redirect to /signup", function() {
+  asyncTest("start with stored unknown secondary email - redirect to /signin", function() {
     pageHelpers.setStoredEmail("unregistered@testuser.com");
     createController({
       ready: function() {
-        equal(docMock.location.href, "/signup", "page redirected to signup if unknown secondary email stored");
+        equal(docMock.location.href, "/signin", "page redirected to signin if unknown secondary email stored");
         start();
       }
     });
-- 
GitLab