Skip to content
Snippets Groups Projects
Commit 5afa0b4d authored by Brian Warner's avatar Brian Warner
Browse files

dialog.js: pass requiredEmail (unchecked) through to params

parent 91b7e6e2
No related branches found
No related tags found
No related merge requests found
......@@ -131,20 +131,21 @@ BrowserID.Modules.Dialog = (function() {
params.hostname = user.getHostname();
// verify params
if (paramsFromRP.tosURL && paramsFromRP.privacyURL) {
try {
try {
params.requiredEmail = paramsFromRP.requiredEmail;
if (paramsFromRP.tosURL && paramsFromRP.privacyURL) {
params.tosURL = fixupURL(origin_url, paramsFromRP.tosURL);
params.privacyURL = fixupURL(origin_url, paramsFromRP.privacyURL);
} catch(e) {
// note: renderError accepts HTML and cheerfully injects it into a
// frame with a powerful origin. So convert 'e' first.
return self.renderError("error", {
action: {
title: "error in " + _.escape(origin_url),
message: "improper usage of API: " + _.escape(e)
}
});
}
} catch(e) {
// note: renderError accepts HTML and cheerfully injects it into a
// frame with a powerful origin. So convert 'e' first.
return self.renderError("error", {
action: {
title: "error in " + _.escape(origin_url),
message: "improper usage of API: " + _.escape(e)
}
});
}
// after this point, "params" can be relied upon to contain safe data
......
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