From bce4551847df3080d6f2c190ee6ef9157d3ac781 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Wed, 20 Dec 2023 09:51:57 +0100 Subject: [PATCH 1/2] refs #6098 feat: copy userToken to clipboard --- src/components/UserPanel.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index a7504705a..aee12d105 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -81,6 +81,10 @@ function logout() { session.destroy(); router.push('/login'); } + +function copyUserToken(){ + navigator.clipboard.writeText(session.getToken()); +}