Skip to content
Snippets Groups Projects
Commit 3a2fa772 authored by Ben Adida's avatar Ben Adida
Browse files

taking stomlinson's great comments into account, fixing a couple of things

parent 892999c5
No related branches found
No related tags found
No related merge requests found
......@@ -56,7 +56,7 @@ $(document).ready(function() {
$("#cancel").click(function(e) {
e.preventDefault();
navigator.id.cancelAuthentication();
navigator.id.raiseAuthenticationFailure('cancel');
});
});
</script>
......
......@@ -37,7 +37,7 @@
};
navigator.id.raiseAuthenticationFailure = function(reason) {
window.location = 'https://login.persona.org/sign_in';
window.location = 'https://login.persona.org/sign_in#AUTH_RETURN_CANCEL';
};
navigator.id._primaryAPIIsShimmed = true;
......
......@@ -201,6 +201,10 @@ BrowserID.Modules.Dialog = (function() {
params.email = primaryParams.email;
params.add = primaryParams.add;
params.type = "primary";
// FIXME: if it's AUTH_RETURN_CANCEL, we should short-circuit
// the attempt at provisioning. For now, we let provisioning
// be tried and fail.
}
// no matter what, we clear the primary flow state for this window
......
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