Skip to content
Snippets Groups Projects
Commit 878ad971 authored by Sean McArthur's avatar Sean McArthur
Browse files

updating reference to /signup to /signin

parent 2143dfa7
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
......@@ -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();
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment