Enable the feature to chnage min pin length when a pin is defined

This commit is contained in:
Fabrice Bellamy
2026-01-23 00:02:39 +01:00
parent e00ffc8901
commit ff4026f64a
2 changed files with 7 additions and 2 deletions
+5
View File
@@ -15,6 +15,7 @@ let
webkitgtk_4_1
pcsclite
hidapi
mesa
];
packages = with pkgs; [
@@ -58,6 +59,10 @@ pkgs.mkShell {
export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath libraries}:$LD_LIBRARY_PATH
export XDG_DATA_DIRS=$GSETTINGS_SCHEMAS_PATH:$XDG_DATA_DIRS
# Try to uncomment the following lines if you encounter EGL_BAD_PARAMETER errors:
# export LIBGL_ALWAYS_SOFTWARE=1
# export WEBKIT_DISABLE_COMPOSITING_MODE=1
echo "Nix development environment loaded!"
echo "Available tools: rustc, cargo, deno, node, tauri"
'';
+2 -2
View File
@@ -49,14 +49,14 @@
</Button>
</div>
<div class="flex items-center justify-between p-4 border rounded-lg opacity-60">
<div class="flex items-center justify-between p-4 border rounded-lg">
<div class="space-y-1">
<p class="font-medium">Minimum PIN Length</p>
<p class="text-sm text-muted-foreground">
Current: {device.fidoInfo?.minPinLength || 4} characters
</p>
</div>
<Button variant="outline" disabled={true}>Update Minimum Length</Button>
<Button variant="outline" disabled={!device.fidoInfo?.options?.clientPin} onclick={() => state.openMinPinDialog()}>Update Minimum Length</Button>
</div>
</Card.Content>
</Card.Root>