From 601ec5c1f801ef396fee0a0a422c75465e006c96 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Mon, 29 Jan 2024 12:04:42 +0100 Subject: [PATCH] Remove "Stay signed in" from mijn environment --- myconext-gui/src/routes/Security.svelte | 81 +------------------------ 1 file changed, 1 insertion(+), 80 deletions(-) diff --git a/myconext-gui/src/routes/Security.svelte b/myconext-gui/src/routes/Security.svelte index a84aceb1..5239fe90 100644 --- a/myconext-gui/src/routes/Security.svelte +++ b/myconext-gui/src/routes/Security.svelte @@ -8,10 +8,7 @@ import rocketSvg from "../icons/redesign/space-rocket-flying.svg"; import {supported} from "@github/webauthn-json" import Button from "../components/Button.svelte"; - import {forgetMe, testWebAutnUrl} from "../api"; - import verifiedSvg from "../icons/redesign/remembered.svg"; - import nonVerifiedSvg from "../icons/redesign/not-remembered.svg"; - import Modal from "../components/Modal.svelte"; + import {testWebAutnUrl} from "../api"; import {onMount} from "svelte"; import {dateFromEpoch} from "../utils/date"; @@ -25,8 +22,6 @@ let publicKeyStyle = $user.usePublicKey ? "value" : "value-alt"; let usePublicKey = $user.usePublicKey; - let showModal = false; - onMount(() => { const urlSearchParams = new URLSearchParams(window.location.search); const testWebAuthn = urlSearchParams.get("success"); @@ -40,18 +35,6 @@ }); - const doForgetMe = showConfirmation => () => { - if (showConfirmation) { - showModal = true - } else { - forgetMe().then(() => { - $user.rememberMe = false; - showModal = false; - flash.setValue(I18n.t("rememberMe.updated")); - }); - } - }; - const credentialsDetails = credential => () => navigate(`/credential?id=${encodeURIComponent(credential.identifier)}`); @@ -192,39 +175,6 @@ } - h4.last { - margin-top: 25px; - } - - table.security-settings { - td { - border-bottom: none; - - &.attr { - width: 28%; - } - - &.icon { - width: 70px; - text-align: center; - } - - &.info { - width: 80%; - - &.verified { - width: 56%; - } - } - - &.forget-me { - width: 122px; - text-align: right; - } - - } - } - :global(div.value-container a.right-link svg) { color: var(--color-secondary-grey); width: 22px; @@ -401,34 +351,5 @@ {/if} -

{I18n.t("security.settings")}

- - - - - - - - {#if $user.rememberMe} - - {/if} - - -
{I18n.t("security.rememberMe")}{@html $user.rememberMe ? verifiedSvg : nonVerifiedSvg} - {@html $user.rememberMe ? I18n.t("security.rememberMeInfo") : I18n.t("security.noRememberMeInfo")} - -
- - -{#if showModal} - showModal = false} - question={I18n.t("rememberMe.forgetMeConfirmation")} - title={I18n.t("rememberMe.forgetMe")}> - - -{/if} \ No newline at end of file