mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
format fingerprint in template
This commit is contained in:
@@ -422,9 +422,10 @@ export class NativeMessagingBackground {
|
||||
}
|
||||
|
||||
private async showFingerprintDialog() {
|
||||
const fingerprint = (
|
||||
await this.cryptoService.getFingerprint(await this.stateService.getUserId(), this.publicKey)
|
||||
).join(" ");
|
||||
const fingerprint = await this.cryptoService.getFingerprint(
|
||||
await this.stateService.getUserId(),
|
||||
this.publicKey
|
||||
);
|
||||
|
||||
this.messagingService.send("showNativeMessagingFinterprintDialog", {
|
||||
fingerprint: fingerprint,
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<span bitDialogContent>
|
||||
{{ "desktopIntegrationVerificationText" | i18n }}
|
||||
<br /><br />
|
||||
<strong>{{ params.fingerprint }}</strong>
|
||||
<strong>{{ params.fingerprint.join("-") }}</strong>
|
||||
</span>
|
||||
<ng-container bitDialogFooter>
|
||||
<button bitButton type="submit" buttonType="danger" bitDialogClose>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||
|
||||
export type DesktopSyncVerificationDialogParams = {
|
||||
fingerprint: string;
|
||||
fingerprint: string[];
|
||||
};
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<span bitDialogContent>
|
||||
<p>{{ "verifyBrowserDesc" | i18n }}</p>
|
||||
<p>
|
||||
<strong>{{ params.fingerprint }}</strong>
|
||||
<strong>{{ params.fingerprint.join("-") }}</strong>
|
||||
</p>
|
||||
</span>
|
||||
<ng-container bitDialogFooter>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||
|
||||
export type BrowserSyncVerificationDialogParams = {
|
||||
fingerprint: string;
|
||||
fingerprint: string[];
|
||||
};
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -71,12 +71,10 @@ export class NativeMessagingService {
|
||||
if (await this.stateService.getEnableBrowserIntegrationFingerprint()) {
|
||||
ipcRenderer.send("nativeMessagingReply", { command: "verifyFingerprint", appId: appId });
|
||||
|
||||
const fingerprint = (
|
||||
await this.cryptoService.getFingerprint(
|
||||
await this.stateService.getUserId(),
|
||||
remotePublicKey
|
||||
)
|
||||
).join("-");
|
||||
const fingerprint = await this.cryptoService.getFingerprint(
|
||||
await this.stateService.getUserId(),
|
||||
remotePublicKey
|
||||
);
|
||||
|
||||
this.messagingService.send("setFocus");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user