Fix using Buffer on window scope (#6324)
* Update 2fa.vue * Import 'core-js/es/typed-array/from' * Bye polyfill
This commit is contained in:
parent
766c00c305
commit
778ac79c44
|
@ -208,11 +208,11 @@ export default Vue.extend({
|
||||||
challengeId: registration.challengeId,
|
challengeId: registration.challengeId,
|
||||||
stage: 0,
|
stage: 0,
|
||||||
publicKeyOptions: {
|
publicKeyOptions: {
|
||||||
challenge: Buffer.from(
|
challenge: Uint8Array.from(
|
||||||
registration.challenge
|
atob(registration.challenge
|
||||||
.replace(/\-/g, "+")
|
.replace(/\-/g, '+')
|
||||||
.replace(/_/g, "/"),
|
.replace(/_/g, '/')),
|
||||||
'base64'
|
x => x.charCodeAt(0),
|
||||||
),
|
),
|
||||||
rp: {
|
rp: {
|
||||||
id: hostname,
|
id: hostname,
|
||||||
|
@ -223,7 +223,7 @@ export default Vue.extend({
|
||||||
name: this.$store.state.i.username,
|
name: this.$store.state.i.username,
|
||||||
displayName: this.$store.state.i.name,
|
displayName: this.$store.state.i.name,
|
||||||
},
|
},
|
||||||
pubKeyCredParams: [{alg: -7, type: 'public-key'}],
|
pubKeyCredParams: [{ alg: -7, type: 'public-key' }],
|
||||||
timeout: 60000,
|
timeout: 60000,
|
||||||
attestation: 'direct'
|
attestation: 'direct'
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue