From 73b4d5d5bf2666606078144c6b9c5a041720e2f8 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Mon, 20 Jul 2020 19:44:41 +0530 Subject: [PATCH] refactor passphrase to util --- src/main/frontend/admin/pages/user/ChangePassphrase.ts | 2 +- src/main/frontend/common/{ajax => util}/passphrase.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename src/main/frontend/common/{ajax => util}/passphrase.ts (91%) diff --git a/src/main/frontend/admin/pages/user/ChangePassphrase.ts b/src/main/frontend/admin/pages/user/ChangePassphrase.ts index 89ca126..f98a0c7 100644 --- a/src/main/frontend/admin/pages/user/ChangePassphrase.ts +++ b/src/main/frontend/admin/pages/user/ChangePassphrase.ts @@ -7,7 +7,7 @@ import { Credentials } from "../../../common/global/Credentials"; import { MessageCipher } from "../../../common/entity/MessageCipher"; import log from "loglevel"; import { NotificationService } from "../../../common/service/NotificationService"; -import { isPassphraseValid } from "../../../common/ajax/passphrase"; +import { isPassphraseValid } from "../../../common/util/passphrase"; import { getAllMessages, sendReencryptedMessages, diff --git a/src/main/frontend/common/ajax/passphrase.ts b/src/main/frontend/common/util/passphrase.ts similarity index 91% rename from src/main/frontend/common/ajax/passphrase.ts rename to src/main/frontend/common/util/passphrase.ts index cd02bbd..6246324 100644 --- a/src/main/frontend/common/ajax/passphrase.ts +++ b/src/main/frontend/common/util/passphrase.ts @@ -1,7 +1,7 @@ import { EncryptionService } from "../service/EncryptionService"; import { ChatMessageDTO } from "../dto/ChatMessageDTO"; import * as log from "loglevel"; -import { getOneMessage } from "./messages"; +import { getOneMessage } from "../ajax/messages"; export async function isPassphraseValid( passphrase: string,