upstream: remove hardcoded domain and use window.location.host, so this

can be run anywhere

OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92
This commit is contained in:
djm@openbsd.org 2022-01-11 22:33:16 +00:00 committed by Damien Miller
parent 96da0946e4
commit acabefe3f8
1 changed files with 3 additions and 3 deletions

View File

@ -372,8 +372,8 @@ function enrollStart(username) {
let pkopts = {
challenge: challenge,
rp: {
name: "mindrot.org",
id: "mindrot.org",
name: window.location.host,
id: window.location.host,
},
user: {
id: userid,
@ -590,7 +590,7 @@ async function assertform_submit(event) {
function assertStart(message) {
let assertReqOpts = {
challenge: message,
rpId: "mindrot.org",
rpId: window.location.host,
allowCredentials: [{
type: 'public-key',
id: window.enrollResult.rawId,