From 74b407ebc7650dd4df491073099d6cccff59a464 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Thu, 25 Feb 2021 21:22:57 +0100 Subject: [PATCH] web: add button to copy TOTP URL closes #591 --- .../authenticator_totp/AuthenticatorTOTPStage.ts | 14 ++++++++++++++ web/src/elements/stages/form.ts | 13 +++++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/web/src/elements/stages/authenticator_totp/AuthenticatorTOTPStage.ts b/web/src/elements/stages/authenticator_totp/AuthenticatorTOTPStage.ts index ab91ea7c0..e6be98239 100644 --- a/web/src/elements/stages/authenticator_totp/AuthenticatorTOTPStage.ts +++ b/web/src/elements/stages/authenticator_totp/AuthenticatorTOTPStage.ts @@ -5,6 +5,7 @@ import { COMMON_STYLES } from "../../../common/styles"; import { BaseStage } from "../base"; import "webcomponent-qr-code"; import "../form"; +import { showMessage } from "../../messages/MessageContainer"; export interface AuthenticatorTOTPChallenge extends WithUserInfoChallenge { config_url: string; @@ -45,6 +46,19 @@ export class AuthenticatorTOTPStage extends BaseStage { +