create an identifier by default, while letting them choose if passkeys are enabled
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<p class="text-center text-xl font-light">
|
||||
How do you want to create this identifier?
|
||||
</p>
|
||||
<p class="text-center font-light mt-6">
|
||||
<p v-if="PASSKEYS_ENABLED" class="text-center font-light mt-6">
|
||||
A <strong>passkey</strong> is easy to manage, though it is less
|
||||
interoperable with other systems for advanced uses.
|
||||
<a
|
||||
@@ -49,6 +49,7 @@
|
||||
</p>
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2 gap-2 mt-4">
|
||||
<a
|
||||
v-if="PASSKEYS_ENABLED"
|
||||
@click="onClickNewPasskey()"
|
||||
class="block w-full text-center text-lg uppercase bg-gradient-to-b from-blue-400 to-blue-700 shadow-[inset_0_-1px_0_0_rgba(0,0,0,0.5)] text-white px-2 py-3 rounded-md mb-2 cursor-pointer"
|
||||
>
|
||||
@@ -88,7 +89,7 @@
|
||||
<script lang="ts">
|
||||
import { Component, Vue } from "vue-facing-decorator";
|
||||
|
||||
import { AppString } from "@/constants/app";
|
||||
import { AppString, PASSKEYS_ENABLED } from "@/constants/app";
|
||||
import { accountsDB, db } from "@/db/index";
|
||||
import { MASTER_SETTINGS_KEY, Settings } from "@/db/tables/settings";
|
||||
import { registerSaveAndActivatePasskey } from "@/libs/util";
|
||||
@@ -97,6 +98,8 @@ import { registerSaveAndActivatePasskey } from "@/libs/util";
|
||||
components: {},
|
||||
})
|
||||
export default class StartView extends Vue {
|
||||
PASSKEYS_ENABLED = PASSKEYS_ENABLED;
|
||||
|
||||
givenName = "";
|
||||
numAccounts = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user