upstream: remove hardcoded domain and use window.location.host, so this
can be run anywhere OpenBSD-Regress-ID: 2ac2ade3b6227d9c547351d3ccdfe671e62b7f92
This commit is contained in:
parent
96da0946e4
commit
acabefe3f8
|
@ -372,8 +372,8 @@ function enrollStart(username) {
|
||||||
let pkopts = {
|
let pkopts = {
|
||||||
challenge: challenge,
|
challenge: challenge,
|
||||||
rp: {
|
rp: {
|
||||||
name: "mindrot.org",
|
name: window.location.host,
|
||||||
id: "mindrot.org",
|
id: window.location.host,
|
||||||
},
|
},
|
||||||
user: {
|
user: {
|
||||||
id: userid,
|
id: userid,
|
||||||
|
@ -590,7 +590,7 @@ async function assertform_submit(event) {
|
||||||
function assertStart(message) {
|
function assertStart(message) {
|
||||||
let assertReqOpts = {
|
let assertReqOpts = {
|
||||||
challenge: message,
|
challenge: message,
|
||||||
rpId: "mindrot.org",
|
rpId: window.location.host,
|
||||||
allowCredentials: [{
|
allowCredentials: [{
|
||||||
type: 'public-key',
|
type: 'public-key',
|
||||||
id: window.enrollResult.rawId,
|
id: window.enrollResult.rawId,
|
||||||
|
|
Loading…
Reference in New Issue