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() {
|
private async showFingerprintDialog() {
|
||||||
const fingerprint = (
|
const fingerprint = await this.cryptoService.getFingerprint(
|
||||||
await this.cryptoService.getFingerprint(await this.stateService.getUserId(), this.publicKey)
|
await this.stateService.getUserId(),
|
||||||
).join(" ");
|
this.publicKey
|
||||||
|
);
|
||||||
|
|
||||||
this.messagingService.send("showNativeMessagingFinterprintDialog", {
|
this.messagingService.send("showNativeMessagingFinterprintDialog", {
|
||||||
fingerprint: fingerprint,
|
fingerprint: fingerprint,
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span bitDialogContent>
|
<span bitDialogContent>
|
||||||
{{ "desktopIntegrationVerificationText" | i18n }}
|
{{ "desktopIntegrationVerificationText" | i18n }}
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<strong>{{ params.fingerprint }}</strong>
|
<strong>{{ params.fingerprint.join("-") }}</strong>
|
||||||
</span>
|
</span>
|
||||||
<ng-container bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
<button bitButton type="submit" buttonType="danger" bitDialogClose>
|
<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";
|
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||||
|
|
||||||
export type DesktopSyncVerificationDialogParams = {
|
export type DesktopSyncVerificationDialogParams = {
|
||||||
fingerprint: string;
|
fingerprint: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<span bitDialogContent>
|
<span bitDialogContent>
|
||||||
<p>{{ "verifyBrowserDesc" | i18n }}</p>
|
<p>{{ "verifyBrowserDesc" | i18n }}</p>
|
||||||
<p>
|
<p>
|
||||||
<strong>{{ params.fingerprint }}</strong>
|
<strong>{{ params.fingerprint.join("-") }}</strong>
|
||||||
</p>
|
</p>
|
||||||
</span>
|
</span>
|
||||||
<ng-container bitDialogFooter>
|
<ng-container bitDialogFooter>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { JslibModule } from "@bitwarden/angular/jslib.module";
|
|||||||
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
import { ButtonModule, DialogModule, DialogService } from "@bitwarden/components";
|
||||||
|
|
||||||
export type BrowserSyncVerificationDialogParams = {
|
export type BrowserSyncVerificationDialogParams = {
|
||||||
fingerprint: string;
|
fingerprint: string[];
|
||||||
};
|
};
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -71,12 +71,10 @@ export class NativeMessagingService {
|
|||||||
if (await this.stateService.getEnableBrowserIntegrationFingerprint()) {
|
if (await this.stateService.getEnableBrowserIntegrationFingerprint()) {
|
||||||
ipcRenderer.send("nativeMessagingReply", { command: "verifyFingerprint", appId: appId });
|
ipcRenderer.send("nativeMessagingReply", { command: "verifyFingerprint", appId: appId });
|
||||||
|
|
||||||
const fingerprint = (
|
const fingerprint = await this.cryptoService.getFingerprint(
|
||||||
await this.cryptoService.getFingerprint(
|
await this.stateService.getUserId(),
|
||||||
await this.stateService.getUserId(),
|
remotePublicKey
|
||||||
remotePublicKey
|
);
|
||||||
)
|
|
||||||
).join("-");
|
|
||||||
|
|
||||||
this.messagingService.send("setFocus");
|
this.messagingService.send("setFocus");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user