diff --git a/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts b/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts index cd7201b11..9bbe2c3b4 100644 --- a/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts +++ b/web/src/elements/stages/authenticator_webauthn/WebAuthnAuthenticatorRegisterStage.ts @@ -64,7 +64,6 @@ export class WebAuthnAuthenticatorRegisterStage extends BaseStage { } catch (err) { throw new Error(gettext(`Server validation of credential failed: ${err}`)); } - this.finishStage(); } async registerWrapper(): Promise { @@ -80,45 +79,40 @@ export class WebAuthnAuthenticatorRegisterStage extends BaseStage { }); } - finishStage(): void { - // Mark this stage as done - this.dispatchEvent( - new CustomEvent("ak-flow-submit", { - bubbles: true, - composed: true, - }) - ); - } - firstUpdated(): void { this.registerWrapper(); } render(): TemplateResult { - return html`
- ${this.registerRunning ? - html`
-
-
- + return html` + `: - html` -
-

${this.registerMessage}

- - -
`} -
`; +
`: + html` +
+

${this.registerMessage}

+ +
`} +
+
+ `; } }