refactor passphrase to util
This commit is contained in:
parent
9a4aca88b3
commit
73b4d5d5bf
@ -7,7 +7,7 @@ import { Credentials } from "../../../common/global/Credentials";
|
|||||||
import { MessageCipher } from "../../../common/entity/MessageCipher";
|
import { MessageCipher } from "../../../common/entity/MessageCipher";
|
||||||
import log from "loglevel";
|
import log from "loglevel";
|
||||||
import { NotificationService } from "../../../common/service/NotificationService";
|
import { NotificationService } from "../../../common/service/NotificationService";
|
||||||
import { isPassphraseValid } from "../../../common/ajax/passphrase";
|
import { isPassphraseValid } from "../../../common/util/passphrase";
|
||||||
import {
|
import {
|
||||||
getAllMessages,
|
getAllMessages,
|
||||||
sendReencryptedMessages,
|
sendReencryptedMessages,
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { EncryptionService } from "../service/EncryptionService";
|
import { EncryptionService } from "../service/EncryptionService";
|
||||||
import { ChatMessageDTO } from "../dto/ChatMessageDTO";
|
import { ChatMessageDTO } from "../dto/ChatMessageDTO";
|
||||||
import * as log from "loglevel";
|
import * as log from "loglevel";
|
||||||
import { getOneMessage } from "./messages";
|
import { getOneMessage } from "../ajax/messages";
|
||||||
|
|
||||||
export async function isPassphraseValid(
|
export async function isPassphraseValid(
|
||||||
passphrase: string,
|
passphrase: string,
|
Loading…
Reference in New Issue
Block a user