From 35c1665950703ef729b2d51e0cdc4217adc34ac1 Mon Sep 17 00:00:00 2001 From: Eveldee Date: Mon, 7 Jun 2021 18:37:16 +0200 Subject: [PATCH] Add a check for ApplicationsManager --- Akari.Prototype.Server/Services/ApplicationsManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Akari.Prototype.Server/Services/ApplicationsManager.cs b/Akari.Prototype.Server/Services/ApplicationsManager.cs index d572d75..6b853ab 100644 --- a/Akari.Prototype.Server/Services/ApplicationsManager.cs +++ b/Akari.Prototype.Server/Services/ApplicationsManager.cs @@ -132,6 +132,13 @@ namespace Akari.Prototype.Server.Services public bool AddFingerprint(string applicationName, string fingerprintName) { + if (IsFingerprintRegistered(applicationName, fingerprintName)) + { + _logger.LogDebug($"'{fingerprintName}' is already registered for '{applicationName}'"); + + return false; + } + // Verify master password if (!_masterKeyService.IsLoggedIn) {