mirror of git://anongit.mindrot.org/openssh.git
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 = {
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue